X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/44a6faa532235206319d46243c0bc8b03ac2291a..0ed12488752c7b12200ae7b0d69dd8b058b51a8a:/Entity/Snippet.php diff --git a/Entity/Snippet.php b/Entity/Snippet.php index 99bc040..999091f 100644 --- a/Entity/Snippet.php +++ b/Entity/Snippet.php @@ -39,6 +39,11 @@ class Snippet { */ protected $rate; + /** + * @var bool + */ + protected $hat; + /** * @var string */ @@ -79,6 +84,13 @@ class Snippet { */ protected $user; + /** + * Constructor + */ + public function __construct() { + $this->hat = true; + } + /** * Get id * @@ -198,6 +210,27 @@ class Snippet { 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 *