Skip to content

Commit

Permalink
Constructors for keyboard classes
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Jun 30, 2015
1 parent dd3cfba commit 594d758
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Types/ForceReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ class ForceReply extends BaseType
*/
protected $selective;

function __construct($forceReply, $selective)
{
$this->forceReply = $forceReply;
$this->selective = $selective;
}

/**
* @return boolean
*/
Expand Down
6 changes: 6 additions & 0 deletions src/Types/ReplyKeyboardHide.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ class ReplyKeyboardHide extends BaseType
*/
protected $selective;

function __construct($hideKeyboard, $selective)
{
$this->hideKeyboard = $hideKeyboard;
$this->selective = $selective;
}

/**
* @return boolean
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Types/ReplyKeyboardMarkup.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ class ReplyKeyboardMarkup extends BaseType
*/
protected $selective;

function __construct($keyboard, $oneTimeKeyboard, $resizeKeyboard, $selective)
{
$this->keyboard = $keyboard;
$this->oneTimeKeyboard = $oneTimeKeyboard;
$this->resizeKeyboard = $resizeKeyboard;
$this->selective = $selective;
}

/**
* @return array
*/
Expand Down

0 comments on commit 594d758

Please sign in to comment.