1 | <?php |
||
24 | class DefaultFranceChannelFactory implements DefaultStoreDataInterface |
||
25 | { |
||
26 | const DEFAULT_CHANNEL_CODE = 'WEB-FR'; |
||
27 | const DEFAULT_ZONE_CODE = 'FR'; |
||
28 | const DEFAULT_ZONE_NAME = 'France'; |
||
29 | |||
30 | /** |
||
31 | * @var RepositoryInterface |
||
32 | */ |
||
33 | private $channelRepository; |
||
34 | |||
35 | /** |
||
36 | * @var RepositoryInterface |
||
37 | */ |
||
38 | private $zoneMemberRepository; |
||
39 | |||
40 | /** |
||
41 | * @var RepositoryInterface |
||
42 | */ |
||
43 | private $zoneRepository; |
||
44 | |||
45 | /** |
||
46 | * @var ChannelFactoryInterface |
||
47 | */ |
||
48 | private $channelFactory; |
||
49 | |||
50 | /** |
||
51 | * @var FactoryInterface |
||
52 | */ |
||
53 | private $zoneMemberFactory; |
||
54 | |||
55 | /** |
||
56 | * @var FactoryInterface |
||
57 | */ |
||
58 | private $zoneFactory; |
||
59 | |||
60 | /** |
||
61 | * @param RepositoryInterface $channelRepository |
||
62 | * @param RepositoryInterface $zoneMemberRepository |
||
63 | * @param RepositoryInterface $zoneRepository |
||
64 | * @param FactoryInterface $channelFactory |
||
65 | * @param FactoryInterface $zoneMemberFactory |
||
66 | * @param FactoryInterface $zoneFactory |
||
67 | */ |
||
68 | public function __construct( |
||
83 | |||
84 | /** |
||
85 | * {@inheritdoc} |
||
86 | */ |
||
87 | public function create() |
||
99 | |||
100 | /** |
||
101 | * @return ChannelInterface |
||
102 | */ |
||
103 | private function createChannel() |
||
110 | |||
111 | /** |
||
112 | * @return ZoneMemberInterface |
||
113 | */ |
||
114 | private function createZoneMember() |
||
121 | |||
122 | /** |
||
123 | * @param ZoneMemberInterface $zoneMember |
||
124 | * |
||
125 | * @return ZoneInterface |
||
126 | */ |
||
127 | private function createZone(ZoneMemberInterface $zoneMember) |
||
137 | } |
||
138 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.