eZ\Publish\Core\REST\Server\Controller\Section::mapToUpdateStruct PHP Method

mapToUpdateStruct() protected method

Needed since both structs are encoded into the same media type on input.
protected mapToUpdateStruct ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $createStruct ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
$createStruct eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
return eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
    protected function mapToUpdateStruct(SectionCreateStruct $createStruct)
    {
        return new SectionUpdateStruct(array('name' => $createStruct->name, 'identifier' => $createStruct->identifier));
    }