@@ 1067-1069 (lines=3) @@ | ||
1064 | ||
1065 | protected function specialContentHandler($parent, $k, $v, $optionals, $fn) |
|
1066 | { |
|
1067 | if (! \is_string($k) || $k !== '@'|| ! \is_string($v)) { |
|
1068 | return false; |
|
1069 | } |
|
1070 | ||
1071 | // The user has passed an element text content: |
|
1072 | // [ '@' => 'Element content.' ] |
|
@@ 1088-1090 (lines=3) @@ | ||
1085 | ||
1086 | protected function specialAttributeHandler($parent, $k, $v, $optionals, $fn) |
|
1087 | { |
|
1088 | if (! \is_string($k) || $k[0] !== '@' || ! \is_string($v)) { |
|
1089 | return false; |
|
1090 | } |
|
1091 | ||
1092 | // The user has passed an attribute name and an attribute value: |
|
1093 | // [ '@attribute' => 'Attribute content' ] |