]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Snippet.php
Add composer deps
[airbundle] / Entity / Snippet.php
index 99bc040a170e26b1b28dd45dbc16ab1175da9dae..999091f6733d220b9f92c72cbf83cf405cdde7c2 100644 (file)
@@ -39,6 +39,11 @@ class Snippet {
         */
        protected $rate;
 
         */
        protected $rate;
 
+       /**
+        * @var bool
+        */
+       protected $hat;
+
        /**
         * @var string
         */
        /**
         * @var string
         */
@@ -79,6 +84,13 @@ class Snippet {
         */
        protected $user;
 
         */
        protected $user;
 
+       /**
+        * Constructor
+        */
+       public function __construct() {
+               $this->hat = true;
+       }
+
        /**
         * Get id
         *
        /**
         * Get id
         *
@@ -198,6 +210,27 @@ class Snippet {
                return $this->rate;
        }
 
                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
         *
        /**
         * Set contact
         *