SOAPClient and PHP, modify params in class

  php, soap, wsdl

I have some problem.

Can I with SoapClient modify/change public $link in my Title Class?

$client = new SoapClient($url, [
    'stream_context' => $context,
    'cache_wsdl' => WSDL_CACHE_NONE,
    'trace' => true,
    ]);
    $client->getLink("https://www.somelink.com");


    class Title {
     public $link;

     public function getLink($link){
      return $this->link;
      }
    }

Source: Ask PHP

LEAVE A COMMENT