| 1 | <?php | ||
| 23 | class CountFilesHandler | ||
| 24 | { | ||
| 25 | /** | ||
| 26 | * The file repository. | ||
| 27 | * | ||
| 28 | * @var FileRepository | ||
| 29 | */ | ||
| 30 | private $repository; | ||
| 31 | |||
| 32 | /** | ||
| 33 | * The file specification factory. | ||
| 34 | * | ||
| 35 | * @var FileSpecificationFactory | ||
| 36 | */ | ||
| 37 | private $specificationFactory; | ||
| 38 | |||
| 39 | /** | ||
| 40 | * Constructor. | ||
| 41 | * | ||
| 42 | * @param FileRepository $aRepository The file repository | ||
| 43 | * @param FileSpecificationFactory $fileSpecificationFactory The file specification factory | ||
| 44 | */ | ||
| 45 | public function __construct(FileRepository $aRepository, FileSpecificationFactory $fileSpecificationFactory) | ||
| 50 | |||
| 51 | /** | ||
| 52 | * Handles the given query. | ||
| 53 | * | ||
| 54 | * @param CountFilesQuery $aQuery The query | ||
| 55 | * | ||
| 56 | * @return mixed | ||
| 57 | */ | ||
| 58 | public function __invoke(CountFilesQuery $aQuery) | ||
| 66 | } | ||
| 67 |