src/Model/Project.php
public function addDomain($name, array $ssl = [])
    {
        $body = ['name' => $name];
        if (!empty($ssl)) {
            $body['ssl'] = $ssl;
        }

        return Domain::create($body, $this->getLink('domains'), $this->client);
    }
public function addDomain($name, array $ssl = [])
    {
        $body = ['name' => $name];
        if (!empty($ssl)) {
            $body['ssl'] = $ssl;
        }

        return Domain::create($body, $this->getLink('domains'), $this->client);
    }
public function addDomain ( $ name , array $ ssl = [ ] ) { $ body = [ 'name' => $ name ] ; if ( ! empty ( $ ssl ) ) { $ body [ 'ssl' ] = $ ssl ; } return Domain :: create ( $ body , $ this -> getLink ( 'domains' ) , $ this -> client ) ; }
Add a domain to the project.

@param string $name
@param array  $ssl

@return Result
Add a domain to the project .