File manager - Edit - /home/autoph/public_html/tasks/vendor/bogdaan/viber-bot-php/src/Api/Sender.php
Back
<?php namespace Viber\Api; /** * Message sender * * @author Novikov Bogdan <hcbogdan@gmail.com> */ class Sender extends Entity { /** * Viber User id * * @var string */ protected $id; /** * Viber name * * @var string */ protected $name; /** * URL of the user's avatar * * @var string */ protected $avatar; /** * {@inheritDoc} */ protected $propertiesMap = [ 'id' => 'setId', 'name' => 'setName', 'avatar' => 'setAvatar', ]; /** * {@inheritDoc} */ public function toArray() { return [ 'id' => $this->getId(), 'name' => $this->getName(), 'avatar' => $this->getAvatar(), ]; } /** * Get the value of Viber User id * * @return [type] */ public function getId() { return $this->id; } /** * Set the value of Viber User id * * @param string id * * @return self */ public function setId($id) { $this->id = $id; return $this; } /** * Get the value of Viber name * * @return string */ public function getName() { return $this->name; } /** * Set the value of Viber name * * @param string name * * @return self */ public function setName($name) { $this->name = $name; return $this; } /** * Get the value of URL of the user's avatar * * @return string */ public function getAvatar() { return $this->avatar; } /** * Set the value of URL of the user's avatar * * @param string avatar * * @return self */ public function setAvatar($avatar) { $this->avatar = $avatar; return $this; } }
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings