eZ\Publish\Core\REST\Server\Controller\Section::mapToUpdateStruct PHP 메소드

mapToUpdateStruct() 보호된 메소드

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
리턴 eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
    protected function mapToUpdateStruct(SectionCreateStruct $createStruct)
    {
        return new SectionUpdateStruct(array('name' => $createStruct->name, 'identifier' => $createStruct->identifier));
    }