| @@ 74-79 (lines=6) @@ | ||
| 71 | return $this->node ? $this->node->nodeName : ''; |
|
| 72 | case 'attr': |
|
| 73 | return $this->getAllAttributes(); |
|
| 74 | default: |
|
| 75 | if ($this->node && \property_exists($this->node, $nameOrig)) { |
|
| 76 | return $this->node->{$nameOrig}; |
|
| 77 | } |
|
| 78 | ||
| 79 | return $this->getAttribute($name); |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||
| @@ 113-118 (lines=6) @@ | ||
| 110 | case 'text': |
|
| 111 | case 'tag': |
|
| 112 | return true; |
|
| 113 | default: |
|
| 114 | if ($this->node && \property_exists($this->node, $nameOrig)) { |
|
| 115 | return isset($this->node->{$nameOrig}); |
|
| 116 | } |
|
| 117 | ||
| 118 | return $this->hasAttribute($name); |
|
| 119 | } |
|
| 120 | } |
|
| 121 | ||
| @@ 142-147 (lines=6) @@ | ||
| 139 | return $this->replaceChildWithString($value); |
|
| 140 | case 'plaintext': |
|
| 141 | return $this->replaceTextWithString($value); |
|
| 142 | default: |
|
| 143 | if ($this->node && \property_exists($this->node, $nameOrig)) { |
|
| 144 | return $this->node->{$nameOrig} = $value; |
|
| 145 | } |
|
| 146 | ||
| 147 | return $this->setAttribute($name, $value); |
|
| 148 | } |
|
| 149 | } |
|
| 150 | ||