You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: This is my first contact with WebService. I think if an interface is used to define external services, the code structure may be better. I try to modify the code and find that the execution result is normal.
I hope to get a reply.
The text was updated successfully, but these errors were encountered:
/**
* Constructor.
*
* @param mixed $class The class name from which to generate the WSDL.
* @param string $uri The web service URL.
* @throws InvalidArgumentException If the class is not valid or not an object.
*/
public function __construct($class, $uri)
{
if (is_string($class) && class_exists($class)) {
$this->class = $class;
} elseif (is_object($class)) {
$this->class = get_class($class);
} else {
throw new InvalidArgumentException('Invalid class name or object to generate the WSDL for.');
}
$this->uri = $uri;
}
Description: This is my first contact with WebService. I think if an interface is used to define external services, the code structure may be better. I try to modify the code and find that the execution result is normal.
I hope to get a reply.
The text was updated successfully, but these errors were encountered: