public static function create(Domain $domain, $prefix)
    {
        $domain->invokePost('SUBDOMAIN', 'create', ['subdomain' => $prefix]);
        return new self($prefix, $domain);
    }
public static function create(Domain $domain, $prefix)
    {
        $domain->invokePost('SUBDOMAIN', 'create', ['subdomain' => $prefix]);
        return new self($prefix, $domain);
    }
public static function create ( Domain $ domain , $ prefix ) { $ domain -> invokePost ( 'SUBDOMAIN' , 'create' , [ 'subdomain' => $ prefix ] ) ; return new self ( $ prefix , $ domain ) ; }
Creates a new subdomain.

@param Domain $domain Parent domain
@param string $prefix Prefix of the subdomain
@return Subdomain The newly created object
Creates a new subdomain .