| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace ApiGen\Renderer; |
| 4: | |
| 5: | use ApiGen\Index\FileIndex; |
| 6: | use ApiGen\Index\NamespaceIndex; |
| 7: | use ApiGen\Info\ClassLikeInfo; |
| 8: | use ApiGen\Info\FunctionInfo; |
| 9: | use ApiGen\Info\MissingInfo; |
| 10: | |
| 11: | |
| 12: | class Filter |
| 13: | { |
| 14: | public function filterTreePage(): bool |
| 15: | { |
| 16: | return true; |
| 17: | } |
| 18: | |
| 19: | |
| 20: | public function filterSitemapPage(): bool |
| 21: | { |
| 22: | return true; |
| 23: | } |
| 24: | |
| 25: | |
| 26: | public function filterNamespacePage(NamespaceIndex $namespace): bool |
| 27: | { |
| 28: | return true; |
| 29: | } |
| 30: | |
| 31: | |
| 32: | public function filterClassLikePage(ClassLikeInfo $classLike): bool |
| 33: | { |
| 34: | return !$classLike instanceof MissingInfo; |
| 35: | } |
| 36: | |
| 37: | |
| 38: | public function filterFunctionPage(FunctionInfo $function): bool |
| 39: | { |
| 40: | return true; |
| 41: | } |
| 42: | |
| 43: | |
| 44: | public function filterSourcePage(FileIndex $file): bool |
| 45: | { |
| 46: | return $file->primary; |
| 47: | } |
| 48: | } |
| 49: | |