/** * Construct the object. * * @param string $prefix The part before the @ in the address * @param Domain $domain The containing domain * @param string|array|null $config URL encoded config string as returned by CMD_API_POP */ public function __construct($prefix, Domain $domain, $config = null) { parent::__construct($prefix, $domain); if (isset($config)) { $this->setCache(self::CACHE_DATA, is_string($config) ? \GuzzleHttp\Psr7\parse_query($config) : $config); } }
/** * Construct the object. * * @param string $prefix The part before the @ in the address * @param Domain $domain The containing domain * @param array|string $recipients Array or string containing the recipients */ public function __construct($prefix, Domain $domain, $recipients) { parent::__construct($prefix, $domain); $this->recipients = is_string($recipients) ? array_map('trim', explode(',', $recipients)) : $recipients; }