code: 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;
      }
docs: @param object $data
  
  @return ContentfulContentType