1 | <?php |
||
17 | final class SyliusResource extends AbstractSyliusResource |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $name; |
||
23 | |||
24 | /** |
||
25 | * @var SyliusTranslationResource |
||
26 | */ |
||
27 | private $translationResource; |
||
28 | |||
29 | /** |
||
30 | * @param string $name |
||
31 | * @param string|null $modelClass |
||
32 | * @param string|null $interfaceClass |
||
33 | */ |
||
34 | public function __construct($name, $modelClass = null, $interfaceClass = null) |
||
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getName() |
||
48 | |||
49 | /** |
||
50 | * @return SyliusTranslationResource|null |
||
51 | */ |
||
52 | public function getTranslationResource() |
||
56 | |||
57 | /** |
||
58 | * @param SyliusTranslationResource $translationResource |
||
59 | * |
||
60 | * @return $this |
||
61 | */ |
||
62 | public function useTranslationResource(SyliusTranslationResource $translationResource) |
||
68 | } |
||
69 |