Phpro\SoapClient\ClientFactory::factory PHP 메소드

factory() 공개 메소드

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