| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class BlameRepository extends AuthorshipRepository |
||
| 15 | { |
||
| 16 | /** @var EditRepository Instance of EditRepository. */ |
||
| 17 | protected $editRepo; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Set the EditRepository once the container is available. |
||
| 21 | * @param ContainerInterface $container |
||
| 22 | */ |
||
| 23 | public function setContainer(ContainerInterface $container): void |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get an Edit given the revision ID. |
||
| 32 | * @param Page $page Given so that the Edit will point to the same instance, rather than create a new Page. |
||
| 33 | * @param int $revId |
||
| 34 | * @return Edit |
||
| 35 | */ |
||
| 36 | public function getEditFromRevId(Page $page, int $revId): Edit |
||
| 41 |