public function create()
    {
        $class = $this->getClass();
        $contentType = new $class();

        $schema = $this->schemaManager->create();
        $schema->setObjectClass($this->contentManager->getClass());

        $contentType->setSchema($schema);

        return $contentType;
    }
public function create()
    {
        $class = $this->getClass();
        $contentType = new $class();

        $schema = $this->schemaManager->create();
        $schema->setObjectClass($this->contentManager->getClass());

        $contentType->setSchema($schema);

        return $contentType;
    }
public function create ( ) { $ class = $ this -> getClass ( ) ; $ contentType = new $ class ( ) ; $ schema = $ this -> schemaManager -> create ( ) ; $ schema -> setObjectClass ( $ this -> contentManager -> getClass ( ) ) ; $ contentType -> setSchema ( $ schema ) ; return $ contentType ; }
Create a new contentType instance.

@return ContentType
Create a new contentType instance .