plugin/reservation/Serializer/ResourceTypeSerializer.php
public function deserialize($data, ResourceType $resourceType = null)
    {
        if (empty($resourceType)) {
            $resourceType = new ResourceType();
        }
        $resourceType->setName($data['name']);

        return $resourceType;
    }
public function deserialize($data, ResourceType $resourceType = null)
    {
        if (empty($resourceType)) {
            $resourceType = new ResourceType();
        }
        $resourceType->setName($data['name']);

        return $resourceType;
    }
public function deserialize ( $ data , ResourceType $ resourceType = null ) { if ( empty ( $ resourceType ) ) { $ resourceType = new ResourceType ( ) ; } $ resourceType -> setName ( $ data [ 'name' ] ) ; return $ resourceType ; }
Deserializes data into a ResourceType entity.

@param \stdClass    $data
@param ResourceType $resourceType

@return ResourceType
Deserializes data into a ResourceType entity .