private function getByPropertyName($key)
    {
        if (($key = $this->getArrayKey($key)) !== static::NOT_FOUND) {
            if (is_array($this->items[$key])) {
                return $this->__wrap($this->items[$key]);
            }

            return $this->items[$key];
        }

        return static::NOT_FOUND;
    }
private function getByPropertyName($key)
    {
        if (($key = $this->getArrayKey($key)) !== static::NOT_FOUND) {
            if (is_array($this->items[$key])) {
                return $this->__wrap($this->items[$key]);
            }

            return $this->items[$key];
        }

        return static::NOT_FOUND;
    }
private function getByPropertyName ( $ key ) { if ( ( $ key = $ this -> getArrayKey ( $ key ) ) !== static :: NOT_FOUND ) { if ( is_array ( $ this -> items [ $ key ] ) ) { return $ this -> __wrap ( $ this -> items [ $ key ] ) ; } return $ this -> items [ $ key ] ; } return static :: NOT_FOUND ; }
Get a property by name.

@param $key
@return string|static
Get a property by name .