PhpCss\Scanner\Token::__get PHP 메소드

__get() 공개 메소드

Get token attribute
public __get ( string $name ) : integer | string
$name string
리턴 integer | string
    public function __get($name)
    {
        switch ($name) {
            case 'type':
                return $this->_type;
            case 'content':
                return $this->_content;
            case 'length':
                return $this->_length;
            case 'position':
                return $this->_position;
        }
        throw new \InvalidArgumentException();
    }