X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/5f9024a9608dc2ba5cd6dab541676dc301024afe..08f7a501328b732554b39f59f90c06d30d78e9c3:/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 *