1 | <?php |
||
11 | abstract class AbstractStore implements StoreInterface |
||
12 | { |
||
13 | use DecoratorTrait; |
||
14 | |||
15 | /** |
||
16 | * Construct. |
||
17 | * |
||
18 | * @return void |
||
|
|||
19 | */ |
||
20 | public function __construct(FilterFactory $filter) |
||
24 | |||
25 | /** |
||
26 | * Iterate collection and validate data. |
||
27 | * |
||
28 | * @param \Percy\Entity\Collection $collection |
||
29 | * |
||
30 | * @throws \Percy\Exception\ValidationException when first validation failure occurs |
||
31 | * |
||
32 | * @return boolean |
||
33 | */ |
||
34 | public function validate(Collection $collection) |
||
52 | } |
||
53 |
Adding a
@return
annotation 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.