X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/9fb10550fdb3dadf8dd5d6b2751c2d7c5e5e3f82..adb36786c825c2827a3c601cb54d11eb7b0c3136:/Entity/Snippet.php?ds=sidebyside diff --git a/Entity/Snippet.php b/Entity/Snippet.php index f8ae7d2..999091f 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -29,6 +29,21 @@ class Snippet { */ protected $class; + /** + * @var string + */ + protected $short; + + /** + * @var integer + */ + protected $rate; + + /** + * @var bool + */ + protected $hat; + /** * @var string */ @@ -69,6 +84,13 @@ class Snippet { */ protected $user; + /** + * Constructor + */ + public function __construct() { + $this->hat = true; + } + /** * Get id * @@ -144,6 +166,71 @@ class Snippet { return $this->class; } + /** + * Set short + * + * @param string $short + * + * @return Snippet + */ + public function setShort($short) { + $this->short = $short; + + return $this; + } + + /** + * Get short + * + * @return string + */ + public function getShort() { + return $this->short; + } + + /** + * Set rate + * + * @param string $rate + * + * @return Snippet + */ + public function setRate($rate) { + $this->rate = $rate; + + return $this; + } + + /** + * Get rate + * + * @return string + */ + public function getRate() { + return $this->rate; + } + + /** + * Set hat + * + * @param bool $hat + * + * @return User + */ + public function setHat(bool $hat) { + $this->hat = $hat; + + return $this; + } + + /** + * Get hat + * + * @return bool + */ + public function getHat(): bool { + return $this->hat; + } /** * Set contact *