public static function create(Domain $domain, $prefix, $recipients)
    {
        $domain->invokePost('EMAIL_FORWARDERS', 'create', [
            'user' => $prefix,
            'email' => is_array($recipients) ? implode(',', $recipients) : $recipients,
        ]);
        return new self($prefix, $domain, $recipients);
    }
public static function create(Domain $domain, $prefix, $recipients)
    {
        $domain->invokePost('EMAIL_FORWARDERS', 'create', [
            'user' => $prefix,
            'email' => is_array($recipients) ? implode(',', $recipients) : $recipients,
        ]);
        return new self($prefix, $domain, $recipients);
    }
public static function create ( Domain $ domain , $ prefix , $ recipients ) { $ domain -> invokePost ( 'EMAIL_FORWARDERS' , 'create' , [ 'user' => $ prefix , 'email' => is_array ( $ recipients ) ? implode ( ',' , $ recipients ) : $ recipients , ] ) ; return new self ( $ prefix , $ domain , $ recipients ) ; }
Creates a new forwarder.

@param Domain $domain
@param string $prefix
@param string|string[] $recipients
@return Forwarder
Creates a new forwarder .