public function __construct(Freenom_Client $client) { $this->email = $client->getApiLoginId(); $this->password = $client->getApiPassword(); $this->curl = new Freenom_IO_Curl(); }