FluentDOM\Query\Css::offsetGet PHP Method

offsetGet() public method

Allow to use array syntax to read a css property value from first matched node.
See also: ArrayAccess::offsetGet()
public offsetGet ( string $name ) : boolean | mixed
$name string
return boolean | mixed $value
    public function offsetGet($name)
    {
        if ($properties = $this->getStyleProperties()) {
            return $properties[$name];
        }
        return FALSE;
    }