| Total Complexity | 7 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class FindsAuthorForPost |
||
| 12 | { |
||
| 13 | public static function run(MarkdownPost $page): Author|null |
||
| 14 | { |
||
| 15 | return (new static($page))->findAuthorForPost(); |
||
| 16 | } |
||
| 17 | |||
| 18 | protected function __construct(protected MarkdownPost $page) |
||
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function findAuthorForPost(): Author|null |
||
| 39 | } |
||
| 40 | |||
| 41 | protected function getUsername(): string |
||
| 44 | } |
||
| 45 | } |
||
| 46 |