コード例 #1
0
ファイル: Response.php プロジェクト: purchased-at/sdk-php
 /**
  * @param bool $email Send email to vendor provided address after successful payment.
  * @return Response
  */
 public function setEmail($email)
 {
     if (!is_null($email)) {
         Preconditions::checkBool($email, 'email');
     }
     $this->email = $email;
     return $this;
 }
コード例 #2
0
ファイル: Test.php プロジェクト: purchased-at/sdk-php
 /**
  * @param bool $enabled Whether test mode is enabled. All other test related settings are ignored if test mode is false.
  * @return Test
  */
 public function setEnabled($enabled)
 {
     Preconditions::checkBool($enabled, 'enabled');
     $this->enabled = $enabled;
     return $this;
 }