| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class BlameRepository extends AuthorshipRepository |
||
| 19 | { |
||
| 20 | protected EditRepository $editRepo; |
||
| 21 | protected UserRepository $userRepo; |
||
| 22 | |||
| 23 | public function __construct( |
||
| 24 | ContainerInterface $container, |
||
| 25 | CacheItemPoolInterface $cache, |
||
| 26 | Client $guzzle, |
||
| 27 | LoggerInterface $logger, |
||
| 28 | bool $isWMF, |
||
| 29 | int $queryTimeout, |
||
| 30 | EditRepository $editRepo, |
||
| 31 | UserRepository $userRepo |
||
| 32 | ) { |
||
| 33 | parent::__construct($container, $cache, $guzzle, $logger, $isWMF, $queryTimeout); |
||
| 34 | $this->editRepo = $editRepo; |
||
| 35 | $this->userRepo = $userRepo; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get an Edit given the revision ID. |
||
| 40 | * @param Page $page Given so that the Edit will point to the same instance, rather than create a new Page. |
||
| 41 | * @param int $revId |
||
| 42 | * @return Edit|null null if not found. |
||
| 43 | */ |
||
| 44 | public function getEditFromRevId(Page $page, int $revId): ?Edit |
||
| 47 | } |
||
| 48 | } |
||
| 49 |