FluentDOM\Element::__set PHP Method

__set() public method

public __set ( $name, $value )
    public function __set($name, $value)
    {
        switch ($name) {
            case 'nextElementSibling':
            case 'previousElementSibling':
            case 'firstElementChild':
            case 'lastElementChild':
                throw new \BadMethodCallException(sprintf('Can not write readonly property %s::$%s.', get_class($this), $name));
        }
        $this->setParentProperty($name, $value);
        return TRUE;
    }