| 1 | <?php |
||
| 24 | abstract class Finder implements ReaderInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * the finder |
||
| 28 | * |
||
| 29 | * @var SfFinder |
||
| 30 | */ |
||
| 31 | private $finder; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor |
||
| 35 | * |
||
| 36 | * @param string $name limiting names |
||
| 37 | * @param SfFinder $finder |
||
| 38 | * @return void |
||
|
|
|||
| 39 | **/ |
||
| 40 | public function __construct($name = null, SfFinder $finder = null) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | **/ |
||
| 62 | public function canRead($directory) |
||
| 74 | |||
| 75 | /** |
||
| 76 | * Get the finder |
||
| 77 | * |
||
| 78 | * @return SfFinder |
||
| 79 | */ |
||
| 80 | public function getFinder() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Set the finder |
||
| 87 | * |
||
| 88 | * @param SfFinder $finder |
||
| 89 | * @return SfFinder |
||
| 90 | */ |
||
| 91 | public function setFinder(SfFinder $finder) |
||
| 97 | } |
||
| 98 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.