*/
protected $rate;
+ /**
+ * @var bool
+ */
+ protected $hat;
+
/**
* @var string
*/
*/
protected $user;
+ /**
+ * Constructor
+ */
+ public function __construct() {
+ $this->hat = true;
+ }
+
/**
* Get id
*
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
*
/**
* Constructor
+ *
+ * @param string $mail The user mail
*/
- public function __construct() {
+ public function __construct(string $mail) {
//Call parent constructor
- parent::__construct();
+ parent::__construct($mail);
//Set collections
$this->applications = new \Doctrine\Common\Collections\ArrayCollection();