1 | <?php |
||
11 | class CacheService |
||
12 | { |
||
13 | /** |
||
14 | * @var CacheRepository |
||
15 | */ |
||
16 | private $cacheRepository; |
||
17 | |||
18 | // public function __construct(CacheRepository $cacheRepository) |
||
19 | public function __construct(Connection $connection, SecurityRolesRepository $securityRolesRepository) //test |
||
26 | |||
27 | /** |
||
28 | * Fetches all caches. |
||
29 | * |
||
30 | * @return CacheEntity[] |
||
31 | */ |
||
32 | public function fetchAll(): array |
||
42 | |||
43 | /** |
||
44 | * Fetches a cache by its id. |
||
45 | */ |
||
46 | public function fetchOneById(int $cache_id): ?CacheEntity |
||
56 | |||
57 | /** |
||
58 | * Fetches a cache by its wp_oc. |
||
59 | */ |
||
60 | public function fetchOneByWpOC(text $cache_wp_oc): ?CacheEntity |
||
70 | |||
71 | /** |
||
72 | * Fetches a cache by its name. |
||
73 | */ |
||
74 | public function fetchOneByName(text $cache_name): ?CacheEntity |
||
84 | |||
85 | } |
||
86 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.