Phpro\SoapClient\ClientFactory::factory PHP Method

factory() public method

public factory ( SoapClient $soapClient, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) : object
$soapClient SoapClient
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
return object
    public function factory(SoapClient $soapClient, EventDispatcherInterface $dispatcher)
    {
        $rc = new ReflectionClass($this->className);
        return $rc->newInstance($soapClient, $dispatcher);
    }