eZ\Publish\Core\Repository\Values\Content\Content::__get PHP Method

__get() public method

Magic getter for retrieving convenience properties.
public __get ( string $property ) : mixed
$property string The name of the property to retrieve
return mixed
    public function __get($property)
    {
        switch ($property) {
            case 'id':
                return $this->versionInfo->contentInfo->id;
            case 'contentInfo':
                return $this->versionInfo->contentInfo;
        }
        return parent::__get($property);
    }