1 | <?php |
||
26 | class Marker |
||
27 | { |
||
28 | const SYMBOL_CIRCLE = 'circle'; |
||
29 | const SYMBOL_DASH = 'dash'; |
||
30 | const SYMBOL_DIAMOND = 'diamond'; |
||
31 | const SYMBOL_DOT = 'dot'; |
||
32 | const SYMBOL_NONE = 'none'; |
||
33 | const SYMBOL_PLUS = 'plus'; |
||
34 | const SYMBOL_SQUARE = 'square'; |
||
35 | const SYMBOL_STAR = 'star'; |
||
36 | const SYMBOL_TRIANGLE = 'triangle'; |
||
37 | const SYMBOL_X = 'x'; |
||
38 | |||
39 | public static $arraySymbol = array( |
||
40 | self::SYMBOL_CIRCLE, |
||
41 | self::SYMBOL_DASH, |
||
42 | self::SYMBOL_DIAMOND, |
||
43 | self::SYMBOL_DOT, |
||
44 | self::SYMBOL_NONE, |
||
45 | self::SYMBOL_PLUS, |
||
46 | self::SYMBOL_SQUARE, |
||
47 | self::SYMBOL_STAR, |
||
48 | self::SYMBOL_TRIANGLE, |
||
49 | self::SYMBOL_X |
||
50 | ); |
||
51 | |||
52 | /** |
||
53 | * @var string |
||
54 | */ |
||
55 | protected $symbol = self::SYMBOL_NONE; |
||
56 | |||
57 | /** |
||
58 | * @var int |
||
59 | */ |
||
60 | protected $size = 5; |
||
61 | |||
62 | /** |
||
63 | * @var PhpOffice\PhpPresentation\Style\Fill |
||
64 | */ |
||
65 | protected $fill; |
||
66 | |||
67 | /** |
||
68 | * @var PhpOffice\PhpPresentation\Style\Border |
||
69 | */ |
||
70 | protected $border; |
||
71 | |||
72 | 101 | public function __construct(){ |
|
77 | |||
78 | /** |
||
79 | * @return string |
||
80 | */ |
||
81 | 27 | public function getSymbol() |
|
85 | |||
86 | /** |
||
87 | * @param string $symbol |
||
88 | * @return $this |
||
89 | */ |
||
90 | 5 | public function setSymbol($symbol = self::SYMBOL_NONE) |
|
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | 6 | public function getSize() |
|
103 | |||
104 | /** |
||
105 | * @param int $size |
||
106 | * @return $this |
||
107 | */ |
||
108 | 5 | public function setSize($size = 5) |
|
113 | |||
114 | /** |
||
115 | * @return PhpOffice\PhpPresentation\Style\Fill |
||
116 | */ |
||
117 | 16 | public function getFill() |
|
121 | |||
122 | /** |
||
123 | * @param PhpOffice\PhpPresentation\Style\Fill |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setFill(Fill $fill) |
||
131 | |||
132 | /** |
||
133 | * @return PhpOffice\PhpPresentation\Style\Border |
||
134 | */ |
||
135 | 16 | public function getBorder() |
|
139 | |||
140 | /** |
||
141 | * @param PhpOffice\PhpPresentation\Style\Border |
||
142 | * @return $this |
||
143 | */ |
||
144 | public function setBorder(Border $border) |
||
149 | } |
||
150 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..