1 | <?php |
||
7 | abstract class WriterAbstract |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * @param Flagbit\Plantuml\TokenReflection\WriterOptions $writerOptions |
||
12 | */ |
||
13 | 11 | public function __construct(WriterOptions $writerOptions=null) |
|
14 | { |
||
15 | 11 | if (!is_null($writerOptions)) { |
|
16 | $this->writerOptions = $writerOptions; |
||
|
|||
17 | } else { |
||
18 | 11 | $this->writerOptions = new WriterOptions(); |
|
19 | } |
||
20 | 11 | } |
|
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $indent = ' '; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $linebreak = "\n"; |
||
30 | |||
31 | /** |
||
32 | * @var Flagbit\Plantuml\TokenReflection\WriterOptions |
||
33 | */ |
||
34 | protected $writerOptions = null; |
||
35 | |||
36 | /** |
||
37 | * @param string $indent |
||
38 | */ |
||
39 | 11 | protected function setIndent($indent = ' ') |
|
40 | { |
||
41 | 11 | $this->indent = (string) $indent; |
|
42 | 11 | } |
|
43 | |||
44 | /** |
||
45 | * @param string $string |
||
46 | * @return string |
||
47 | */ |
||
48 | 11 | public function formatLine($string) |
|
52 | |||
53 | /** |
||
54 | * @param \TokenReflection\IReflectionClass $declaringClass The class using the namespace aliases |
||
55 | * @param string $aliasedClassName The class name used in the declaring class |
||
56 | * @return string |
||
57 | */ |
||
58 | 4 | protected function expandNamespaceAlias(IReflectionClass $declaringClass, $aliasedClassName) |
|
69 | |||
70 | /** |
||
71 | * @param string $className |
||
72 | * @return string |
||
73 | */ |
||
74 | 11 | protected function formatClassName($className) |
|
82 | |||
83 | /** |
||
84 | * @param mixed $value |
||
85 | * @return string |
||
86 | */ |
||
87 | 4 | protected function formatValue($value) |
|
117 | } |
||
118 |
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..