Published on WSO2 Oxygen Tank (http://wso2.org)

Class Inheritance support?

By dantleech
Created 2008-07-04 08:08

Hi

Does the extension support class inheritance?

i.e. if i have a class and a response object that extends from a common base ...

class myService
{
  public function myMethod()
  {
    $response = new MyResponse;
    $response -> is_success = true;
    $response -> blah = 'blah';
    
    return $response;
  }
}

abstract class Response
{
  public $is_success;
}

class MyResponse extends Response
{
  public $blah;
}

assuming that I have added type comments to the file - will the WSDL and webservice client respect the inheritance?

cheers

dan


Source URL:
http://wso2.org/forum/thread/3791