Selaa lähdekoodia

agregue position dentro del nap

Luciano Andrade 8 vuotta sitten
vanhempi
commit
4902186b12
1 muutettua tiedostoa jossa 27 lisäystä ja 0 poistoa
  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;
+    }
 }