* Constructor
         */
        public function __construct() {
+               //Set defaults
                $this->description = null;
                $this->class = null;
                $this->short = null;
                $this->donate = null;
                $this->link = null;
                $this->profile = null;
+               $this->created = new \DateTime('now');
+               $this->updated = new \DateTime('now');
+               $this->location = null;
        }
 
        /**
        /**
         * Set rate
         *
-        * @param string $rate
+        * @param int $rate
         *
         * @return Snippet
         */
-       public function setRate(?string $rate): Snippet {
+       public function setRate(?int $rate): Snippet {
                $this->rate = $rate;
 
                return $this;
        /**
         * Get rate
         *
-        * @return string
+        * @return int
         */
-       public function getRate(): ?string {
+       public function getRate(): ?int {
                return $this->rate;
        }
 
         *
         * @return User
         */
-       public function setHat(bool $hat): Snippet {
+       public function setHat(?bool $hat): Snippet {
                $this->hat = $hat;
 
                return $this;
         *
         * @return bool
         */
-       public function getHat(): bool {
+       public function getHat(): ?bool {
                return $this->hat;
        }
        /**