FluentDOM\QualifiedName::__get PHP Method

__get() public method

Read dynamic property, throw exception for invalid properties.
public __get ( $property ) : string
$property
return string
    public function __get($property)
    {
        switch ($property) {
            case 'name':
                return empty($this->_prefix) ? $this->_localName : $this->_prefix . ':' . $this->_localName;
            case 'localName':
                return $this->_localName;
            case 'prefix':
                return $this->_prefix;
        }
        throw new \LogicException(sprintf('Invalid property %s::$%s', get_class($this), $property));
    }