1 | <?php |
||
18 | abstract class ObjectByIdOrString extends ObjectById |
||
19 | { |
||
20 | |||
21 | use traits\ObjectByString; |
||
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | public function find($identifier, string $toScenario = null) |
||
39 | |||
40 | /******************************************* |
||
41 | * CACHE |
||
42 | *******************************************/ |
||
43 | |||
44 | /** |
||
45 | * @inheritdoc |
||
46 | */ |
||
47 | public function findCache($identifier) |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | public function addToCache(BaseObject $object) |
||
73 | |||
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | */ |
||
78 | public function findCacheByRecord(Record $record) |
||
87 | } |
||
88 |