Jackalope\Property::getProperty PHP Метод

getProperty() публичный Метод

{@inheritDoc}
public getProperty ( )
    public function getProperty()
    {
        $this->checkState();
        $values = $this->isMultiple() ? $this->value : array($this->value);
        $results = array();
        switch ($this->type) {
            case PropertyType::PATH:
            case PropertyType::STRING:
            case PropertyType::NAME:
                foreach ($values as $value) {
                    $results[] = $this->objectManager->getPropertyByPath(PathHelper::absolutizePath($value, $this->parentPath));
                }
                break;
            default:
                throw new ValueFormatException('Property is not a PATH (or convertible to PATH)');
        }
        return $this->isMultiple() ? $results : $results[0];
    }