create() public method

Create a new service
public create ( string | mixed $service ) : mixed
$service string | mixed
return mixed $service
Example #1
0
 public function account()
 {
     if (null === $this->accountClient) {
         $this->accountClient = $this->restAdapter->create('Tebru\\Stripe\\Client\\AccountClient');
     }
     return $this->accountClient;
 }
 /**
  * @expectedException \Tebru\Retrofit\Exception\RetrofitException
  */
 public function testWillThrowExceptionOnInvalidClass()
 {
     $this->adapter->create('Foo');
 }