DragonBe\Vies\Vies::getWsdl PHP Method

getWsdl() public method

Retrieves the location of the WSDL for the VIES SOAP service
public getWsdl ( ) : string
return string
    public function getWsdl()
    {
        if (null === $this->wsdl) {
            $this->wsdl = sprintf('%s://%s%s', self::VIES_PROTO, self::VIES_DOMAIN, self::VIES_WSDL);
        }
        return $this->wsdl;
    }

Usage Example

Example #1
0
 /**
  * @covers \DragonBe\Vies\Vies::setWsdl
  */
 public function testSettingCustomWsdl()
 {
     $wsdl = 'http://www.example.com/?wsdl';
     $vies = new Vies();
     $vies->setWsdl($wsdl);
     $actual = $vies->getWsdl();
     $this->assertSame($wsdl, $actual);
 }