Procházet zdrojové kódy

agregue position dentro del nap

Luciano Andrade před 8 roky
rodič
revize
4902186b12
1 změnil soubory, kde provedl 27 přidání a 0 odebrání
  1. 27 0
      src/FTTHBundle/Entity/ONU.php

+ 27 - 0
src/FTTHBundle/Entity/ONU.php

@@ -130,6 +130,12 @@ class ONU
      */
     protected $workflow;
 
+    /**
+     * @var int
+     *
+     * @ORM\Column(type="integer", nullable=false, options={"default": "0"})
+     */
+    private $position = 0;
     
     /**
      * @return string
@@ -554,4 +560,25 @@ class ONU
         return $workflow;
     }
 
+    /**
+     * Get getPosition
+     *
+     * @return int
+     */
+    public function getPosition(){
+           return $this->position;
+    }
+
+     /**
+     * Set getPosition
+     *
+     * No se recomienda usar este metodo, porque se debe calcular a partir del NAP
+     *
+     * @return $this
+     */
+    public function setPosition($position){
+	$this->position = $position;
+
+        return $this;
+    }
 }