FluentDOM\Query\Data::__set PHP Method

__set() public method

Change a data attribute on the attached node.
public __set ( string $name, mixed $value )
$name string
$value mixed
    public function __set($name, $value)
    {
        $this->_node->setAttribute($this->encodeName($name), $this->encodeValue($value));
    }