public function map(ValueObject $value): RoleUpdateData
    {
        if (!$value instanceof RoleUpdateStruct) {
            throw new InvalidArgumentException('value', 'must be an instance of ' . RoleUpdateStruct::class);
        }

        $data = new RoleUpdateData();

        $data->setIdentifier($value->identifier);

        return $data;
    }
public function map(ValueObject $value): RoleUpdateData
    {
        if (!$value instanceof RoleUpdateStruct) {
            throw new InvalidArgumentException('value', 'must be an instance of ' . RoleUpdateStruct::class);
        }

        $data = new RoleUpdateData();

        $data->setIdentifier($value->identifier);

        return $data;
    }
public function map ( ValueObject $ value ) : RoleUpdateData { if ( ! $ value instanceof RoleUpdateStruct ) { throw new InvalidArgumentException ( 'value' , 'must be an instance of ' . RoleUpdateStruct :: class ) ; } $ data = new RoleUpdateData ( ) ; $ data -> setIdentifier ( $ value -> identifier ) ; return $ data ; }
Maps given RoleUpdateStruct object to a RoleUpdateData object.

@param RoleUpdateStruct|ValueObject $value

@return RoleUpdateData

@throws InvalidArgumentException
Maps given RoleUpdateStruct object to a RoleUpdateData object .