1 | <?php |
||
24 | class TranslatableChecker |
||
25 | { |
||
26 | /** |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $supportedInterfaces = []; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $supportedModels = []; |
||
35 | |||
36 | public function setSupportedInterfaces(array $supportedInterfaces): void |
||
40 | |||
41 | /** |
||
42 | * @return array |
||
43 | */ |
||
44 | public function getSupportedInterfaces() |
||
48 | |||
49 | /** |
||
50 | * @param array $supportedModels |
||
51 | */ |
||
52 | public function setSupportedModels($supportedModels): void |
||
56 | |||
57 | /** |
||
58 | * @return array |
||
59 | */ |
||
60 | public function getSupportedModels() |
||
64 | |||
65 | /** |
||
66 | * Check if $object is translatable. |
||
67 | * |
||
68 | * @param mixed $object |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function isTranslatable($object) |
||
106 | } |
||
107 |