|
@@ 1074-1076 (lines=3) @@
|
| 1071 |
|
|
| 1072 |
|
protected function specialContentHandler($parent, $k, $v) |
| 1073 |
|
{ |
| 1074 |
|
if (! \is_string($k) || $k !== '@'|| ! \is_string($v)) { |
| 1075 |
|
return false; |
| 1076 |
|
} |
| 1077 |
|
|
| 1078 |
|
// The user has passed an element text content: |
| 1079 |
|
// [ '@' => 'Element content.' ] |
|
@@ 1095-1097 (lines=3) @@
|
| 1092 |
|
|
| 1093 |
|
protected function specialAttributeHandler($parent, $k, $v) |
| 1094 |
|
{ |
| 1095 |
|
if (! \is_string($k) || $k[0] !== '@' || ! \is_string($v)) { |
| 1096 |
|
return false; |
| 1097 |
|
} |
| 1098 |
|
|
| 1099 |
|
// The user has passed an attribute name and an attribute value: |
| 1100 |
|
// [ '@attribute' => 'Attribute content' ] |