create() 공개 메소드

Create a new service
public create ( string | mixed $service ) : mixed
$service string | mixed
리턴 mixed $service
예제 #1
0
파일: Stripe.php 프로젝트: tebru/stripe-sdk
 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');
 }