/** * Creates a new domain under this user. * * @param string $domainName Domain name to create * @param float|null $bandwidthLimit Bandwidth limit in MB, or NULL to share with account * @param float|null $diskLimit Disk limit in MB, or NULL to share with account * @param bool|null $ssl Whether SSL is to be enabled, or NULL to fallback to account default * @param bool|null $php Whether PHP is to be enabled, or NULL to fallback to account default * @param bool|null $cgi Whether CGI is to be enabled, or NULL to fallback to account default * @return Domain Newly created domain */ public function createDomain($domainName, $bandwidthLimit = null, $diskLimit = null, $ssl = null, $php = null, $cgi = null) { $domain = Domain::create($this->getSelfManagedUser(), $domainName, $bandwidthLimit, $diskLimit, $ssl, $php, $cgi); $this->clearCache(); return $domain; }