Skip to content

Commit b0f1dc6

Browse files
committed
Adds unset method.
1 parent 305be8d commit b0f1dc6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Element.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,10 @@ private function _getPropValue(array $prop_key) {
182182
return null;
183183
}
184184
}
185+
186+
public function unsetProp($prop_key) {
187+
Helpers::checkType('prop_key', 'string', $prop_key);
188+
unset($this->value->{$prop_key});
189+
return $this;
190+
}
185191
}

0 commit comments

Comments
 (0)