public function reverseMap($data): SectionCreateStruct
    {
        if (!$data instanceof SectionCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . SectionCreateData::class);
        }

        return new SectionCreateStruct([
            'name' => $data->getName(),
            'identifier' => $data->getIdentifier(),
        ]);
    }
public function reverseMap($data): SectionCreateStruct
    {
        if (!$data instanceof SectionCreateData) {
            throw new InvalidArgumentException('data', 'must be an instance of ' . SectionCreateData::class);
        }

        return new SectionCreateStruct([
            'name' => $data->getName(),
            'identifier' => $data->getIdentifier(),
        ]);
    }
public function reverseMap ( $ data ) : SectionCreateStruct { if ( ! $ data instanceof SectionCreateData ) { throw new InvalidArgumentException ( 'data' , 'must be an instance of ' . SectionCreateData :: class ) ; } return new SectionCreateStruct ( [ 'name' => $ data -> getName ( ) , 'identifier' => $ data -> getIdentifier ( ) , ] ) ; }
Maps given SectionCreateData object to a SectionCreateStruct object.

@param SectionCreateData $data

@return SectionCreateStruct

@throws InvalidArgumentException
Maps given SectionCreateData object to a SectionCreateStruct object .