Adapter/ContentfulContentTypeReader.php
public function getContentType($data)
    {
        $contentType = new ContentfulContentType();
        $contentType->setName($data->name);
        $contentType->setDisplayField($data->displayField);
        $contentType->setId($data->sys->id);
        $contentType->setRevision($data->sys->revision);
        $contentType->setSpaceId($this->spaceId);
        $contentType->setCreatedAt(new \DateTime($data->sys->createdAt));
        $contentType->setUpdatedAt(new \DateTime($data->sys->updatedAt));
        return $contentType;
    }
public function getContentType($data)
    {
        $contentType = new ContentfulContentType();
        $contentType->setName($data->name);
        $contentType->setDisplayField($data->displayField);
        $contentType->setId($data->sys->id);
        $contentType->setRevision($data->sys->revision);
        $contentType->setSpaceId($this->spaceId);
        $contentType->setCreatedAt(new \DateTime($data->sys->createdAt));
        $contentType->setUpdatedAt(new \DateTime($data->sys->updatedAt));
        return $contentType;
    }
public function getContentType ( $ data ) { $ contentType = new ContentfulContentType ( ) ; $ contentType -> setName ( $ data -> name ) ; $ contentType -> setDisplayField ( $ data -> displayField ) ; $ contentType -> setId ( $ data -> sys -> id ) ; $ contentType -> setRevision ( $ data -> sys -> revision ) ; $ contentType -> setSpaceId ( $ this -> spaceId ) ; $ contentType -> setCreatedAt ( new \ DateTime ( $ data -> sys -> createdAt ) ) ; $ contentType -> setUpdatedAt ( new \ DateTime ( $ data -> sys -> updatedAt ) ) ; return $ contentType ; }
@param object $data

@return ContentfulContentType
@param object $data