1 | <?php |
||
27 | class ChooseIf implements Rendering, HasParent, RendersEmptyVariables |
||
28 | { |
||
29 | use RendersEmptyVariablesTrait; |
||
30 | |||
31 | /** |
||
32 | * @var ArrayList<ConstraintInterface> |
||
33 | */ |
||
34 | private $constraints; |
||
35 | |||
36 | /** |
||
37 | * @var ConstraintInterface |
||
38 | */ |
||
39 | private $constraint; |
||
40 | |||
41 | /** |
||
42 | * @var ArrayList |
||
43 | */ |
||
44 | protected $children; |
||
45 | |||
46 | private $match; |
||
47 | |||
48 | /** |
||
49 | * @var |
||
50 | */ |
||
51 | protected $parent; |
||
52 | |||
53 | /** |
||
54 | * @param \SimpleXMLElement $node |
||
55 | * @param Choose $parent |
||
56 | */ |
||
57 | public function __construct(\SimpleXMLElement $node, $parent) |
||
78 | |||
79 | /** |
||
80 | * @param array|\Seboettg\CiteProc\Data\DataList $data |
||
81 | * @param null|int $citationNumber |
||
82 | * @return string |
||
83 | */ |
||
84 | public function render($data, $citationNumber = null) |
||
93 | |||
94 | /** |
||
95 | * @param $data |
||
96 | * @param null|int $citationNumber |
||
97 | * @return bool |
||
98 | */ |
||
99 | public function match($data, $citationNumber = null) |
||
125 | |||
126 | /** |
||
127 | * @return Choose |
||
128 | */ |
||
129 | public function getParent() |
||
133 | |||
134 | |||
135 | public function rendersEmptyVariables($data) |
||
139 | } |
||
|
|||
140 |
This check marks files that end in a newline character, i.e. an empy line.