1 | <?php |
||
17 | class TranslatableChecker |
||
18 | { |
||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $supportedInterfaces = array(); |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $supportedModels = array(); |
||
28 | |||
29 | /** |
||
30 | * @param array $supportedInterfaces |
||
31 | */ |
||
32 | public function setSupportedInterfaces(array $supportedInterfaces) |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getSupportedInterfaces() |
||
44 | |||
45 | /** |
||
46 | * @param array $supportedModels |
||
47 | */ |
||
48 | public function setSupportedModels($supportedModels) |
||
52 | |||
53 | /** |
||
54 | * @return array |
||
55 | */ |
||
56 | public function getSupportedModels() |
||
60 | |||
61 | /** |
||
62 | * Check if $object is translatable. |
||
63 | * |
||
64 | * @param mixed $object |
||
65 | * |
||
66 | * @return bool |
||
67 | */ |
||
68 | public function isTranslatable($object) |
||
99 | } |
||
100 |