Skip to content

Commit

Permalink
Silent action open-url
Browse files Browse the repository at this point in the history
  • Loading branch information
Занило Станислав committed Dec 20, 2018
1 parent 984b6bc commit aa0208c
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Api/Keyboard/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ class Button extends Entity
*/
protected $TextSize;

/**
* Option for enable/disable display text on open-url action
*
* @var bool
*/
protected $Silent;

/**
* {@inheritDoc}
*/
Expand All @@ -158,6 +165,7 @@ public function toArray()
'TextHAlign' => $this->getTextHAlign(),
'TextOpacity' => $this->getTextOpacity(),
'TextSize' => $this->getTextSize(),
'Silent' => $this->isSilent(),
];
}

Expand Down Expand Up @@ -496,4 +504,24 @@ public function setTextSize($TextSize)

return $this;
}

/**
* @return bool
*/
public function isSilent()
{
return (bool) $this->Silent;
}

/**
* @param bool $Silent
*
* @return self
*/
public function setSilent($Silent)
{
$this->Silent = $Silent;

return $this;
}
}

0 comments on commit aa0208c

Please sign in to comment.