1 | <?php |
||
3 | class CacheDecorator |
||
|
|||
4 | { |
||
5 | private $repository; |
||
6 | private $cacheRepository; |
||
7 | private $allColumns; |
||
8 | |||
9 | public function __construct(IRepository $repository, IRepository $cacheRepository) |
||
15 | |||
16 | private function getHash(string $id, string $class): string |
||
20 | |||
21 | public function find(string $id, string $class, array $columns = []): ?Storable |
||
45 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.