Beispiel #1
0
 /**
  * @param string $title
  * @param string $url
  */
 public function __construct($title, $url)
 {
     parent::__construct(Button::TYPE_WEB_URL);
     self::validateTitleSize($title);
     $this->title = $title;
     $this->url = $url;
 }
Beispiel #2
0
 /**
  * @param string $payload
  * @param PaymentSummary $paymentSummary
  */
 public function __construct($payload, PaymentSummary $paymentSummary)
 {
     parent::__construct(Button::TYPE_PAYMENT);
     $this->title = 'buy';
     // Title must be buy.
     $this->payload = $payload;
     $this->paymentSummary = $paymentSummary;
 }
Beispiel #3
0
 /**
  * @param string $title
  * @param string $payload
  */
 public function __construct($title, $payload)
 {
     parent::__construct(Button::TYPE_POSTBACK);
     self::validateTitleSize($title);
     $this->title = $title;
     Button::validatePayload($payload);
     $this->payload = $payload;
 }
 /**
  * @param string $title
  * @param string $phoneNumber
  */
 public function __construct($title, $phoneNumber)
 {
     parent::__construct(Button::TYPE_PHONE_NUMBER);
     self::validateTitleSize($title);
     $this->title = $title;
     self::validatePhoneNumber($phoneNumber);
     $this->phoneNumber = $phoneNumber;
 }
Beispiel #5
0
 public function __construct()
 {
     parent::__construct(Button::TYPE_SHARE);
 }
 /**
  * @param string $url
  */
 public function __construct($url)
 {
     parent::__construct(Button::TYPE_ACCOUNT_LINK);
     $this->url = $url;
 }
 public function __construct()
 {
     parent::__construct(Button::TYPE_ACCOUNT_UNLINK);
 }