1 | <?php |
||
19 | trait LocatorAwareTrait |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * Service locator instance |
||
24 | * |
||
25 | * @var \CakeDC\Api\Service\Locator\LocatorInterface |
||
26 | */ |
||
27 | protected $_serviceLocator; |
||
28 | |||
29 | /** |
||
30 | * Sets the service locator. |
||
31 | * If no parameters are passed, it will return the currently used locator. |
||
32 | * |
||
33 | * @param \CakeDC\Api\Service\Locator\LocatorInterface|null $serviceLocator LocatorInterface instance. |
||
34 | * @return \CakeDC\Api\Service\Locator\LocatorInterface |
||
35 | * @deprecated 3.6.0 Use getTableLocator()/setTableLocator() instead. |
||
36 | */ |
||
37 | public function serviceLocator(LocatorInterface $serviceLocator = null) |
||
49 | |||
50 | /** |
||
51 | * Sets the table locator. |
||
52 | * |
||
53 | * @param \Cake\ORM\Locator\LocatorInterface $tableLocator LocatorInterface instance. |
||
54 | * @return $this |
||
55 | */ |
||
56 | public function setTableLocator(LocatorInterface $tableLocator) |
||
62 | |||
63 | /** |
||
64 | * Gets the table locator. |
||
65 | * |
||
66 | * @return \Cake\ORM\Locator\LocatorInterface |
||
67 | */ |
||
68 | public function getTableLocator() |
||
76 | } |
||
77 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.