eZ\Publish\Core\REST\Server\Values\RestContent::__construct PHP Method

__construct() public method

Construct.
public __construct ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Location $mainLocation = null, eZ\Publish\API\Repository\Values\Content\Content $currentVersion = null, eZ\Publish\API\Repository\Values\ContentType\ContentType $contentType = null, array $relations = null, string $path = null )
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$mainLocation eZ\Publish\API\Repository\Values\Content\Location
$currentVersion eZ\Publish\API\Repository\Values\Content\Content
$contentType eZ\Publish\API\Repository\Values\ContentType\ContentType Can only be null if $currentVersion is
$relations array Can only be null if $currentVersion is
$path string
    public function __construct(ContentInfo $contentInfo, Location $mainLocation = null, Content $currentVersion = null, ContentType $contentType = null, array $relations = null, $path = null)
    {
        $this->contentInfo = $contentInfo;
        $this->mainLocation = $mainLocation;
        $this->currentVersion = $currentVersion;
        $this->contentType = $contentType;
        $this->relations = $relations;
        $this->path = $path;
    }
RestContent