public function createTemplate(Project $project): Template
    {
        try {
            $template = TemplateFactory::createFromAPIResponse(
                $this->client->createTemplate($project->getId())
            );
        } catch (ClientException $ce) {
            $response = $ce->getResponse();

            throw ExceptionFactory::create($response, $ce);
        }

        return $template;
    }
public function createTemplate(Project $project): Template
    {
        try {
            $template = TemplateFactory::createFromAPIResponse(
                $this->client->createTemplate($project->getId())
            );
        } catch (ClientException $ce) {
            $response = $ce->getResponse();

            throw ExceptionFactory::create($response, $ce);
        }

        return $template;
    }
public function createTemplate ( Project $ project ) : Template { try { $ template = TemplateFactory :: createFromAPIResponse ( $ this -> client -> createTemplate ( $ project -> getId ( ) ) ) ; } catch ( ClientException $ ce ) { $ response = $ ce -> getResponse ( ) ; throw ExceptionFactory :: create ( $ response , $ ce ) ; } return $ template ; }
Creates a template.

@param Project $project

@return Template

@throws MoovlyException
Creates a template .