X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/8207b9275d6c59ad0986a3f8138c7f5a5658e77a..e1705c2d17dbbf88161a29471e4bba9cecc86f2b:/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 *