]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Entity/Location.php
Update form name
[airbundle] / Entity / Location.php
index 73fc6b980ff79370d14e6fb6103b4fc0e87cd752..e57f235f3f0ef753f85a2c5c4684d47fada90b33 100644 (file)
@@ -66,11 +66,17 @@ class Location {
         */
        private $sessions;
 
         */
        private $sessions;
 
+       /**
+        * @var \Doctrine\Common\Collections\Collection
+        */
+       private $snippets;
+
        /**
         * Constructor
         */
        public function __construct() {
                $this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
        /**
         * Constructor
         */
        public function __construct() {
                $this->sessions = new \Doctrine\Common\Collections\ArrayCollection();
+               $this->snippets = new \Doctrine\Common\Collections\ArrayCollection();
        }
 
        /**
        }
 
        /**
@@ -333,6 +339,37 @@ class Location {
                return $this->sessions;
        }
 
                return $this->sessions;
        }
 
+       /**
+        * Add snippet
+        *
+        * @param \Rapsys\AirBundle\Entity\Snippet $snippet
+        *
+        * @return Location
+        */
+       public function addSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) {
+               $this->snippets[] = $snippet;
+
+               return $this;
+       }
+
+       /**
+        * Remove snippet
+        *
+        * @param \Rapsys\AirBundle\Entity\Snippet $snippet
+        */
+       public function removeSnippet(\Rapsys\AirBundle\Entity\Snippet $snippet) {
+               $this->snippets->removeElement($snippet);
+       }
+
+       /**
+        * Get snippets
+        *
+        * @return \Doctrine\Common\Collections\Collection
+        */
+       public function getSnippets() {
+               return $this->snippets;
+       }
+
        /**
         * Returns a string representation of the location
         *
        /**
         * Returns a string representation of the location
         *