Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
CRAP
0.00% covered (danger)
0.00%
0 / 1
StaticMenteeOverviewDataProvider
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 2
6
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
 getFormattedDataForMentor
0.00% covered (danger)
0.00%
0 / 1
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3namespace GrowthExperiments\MentorDashboard\MenteeOverview;
4
5use MediaWiki\User\UserIdentity;
6
7class StaticMenteeOverviewDataProvider implements MenteeOverviewDataProvider {
8    /** @var array */
9    private $mentorData;
10
11    /**
12     * @param array $mentorData Static data to return
13     */
14    public function __construct( array $mentorData ) {
15        $this->mentorData = $mentorData;
16    }
17
18    /**
19     * @inheritDoc
20     */
21    public function getFormattedDataForMentor( UserIdentity $mentor ): array {
22        return $this->mentorData;
23    }
24}