public function build($directory, KeyPair $keyPair) { Assert::string($directory); return new AcmeService(new AcmeClient($directory, $keyPair)); }