Browse Source

Nombres de métodos y variables camelCase. Geters

Guillermo Espinoza 7 years ago
parent
commit
b718d168a8
1 changed files with 69 additions and 21 deletions
  1. 69 21
      src/CablemodemBundle/Entity/CMTS.php

+ 69 - 21
src/CablemodemBundle/Entity/CMTS.php

@@ -50,19 +50,19 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface
      * 
      * @Assert\NotNull
      */
-    protected $snmp_comunity;
+    protected $snmpComunity;
 
     /**
      * @ORM\Column(type="integer")
      * 
      * @Assert\NotNull
      */
-    protected $snmp_version;  
+    protected $snmpVersion;  
     
     /**
      * @ORM\Column(type="boolean", nullable=true, columnDefinition="BOOLEAN DEFAULT TRUE")
      */
-    protected $execute_snmp = true;
+    protected $executeSnmp = true;
     
     /**
      * @ORM\ManyToOne(targetEntity="CMTSModel", fetch="EXTRA_LAZY")
@@ -80,6 +80,62 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface
         return $this->name;
     }
     
+    /**
+     * @return int
+     */
+    public function getId()
+    {
+        return $this->id;
+    }
+
+    /**
+     * @return string
+     */
+    public function getName()
+    {
+        return $this->name;
+    }
+
+    /**
+     * @return string
+     */
+    public function getHost()
+    {
+        return $this->host;
+    }
+
+    /**
+     * @return string
+     */
+    public function getSnmpComunity()
+    {
+        return $this->snmpComunity;
+    }
+
+    /**
+     * @return int
+     */
+    public function getSnmpVersion()
+    {
+        return $this->snmpVersion;
+    }
+
+    /**
+     * @return boolean
+     */
+    public function getExecuteSnmp()
+    {
+        return $this->executeSnmp;
+    }
+
+    /**
+     * @return CMTSModel
+     */
+    public function getModel()
+    {
+        return $this->model;
+    }
+
     /**
      * @param string $name
      * 
@@ -105,48 +161,40 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface
     }
 
     /**
-     * @param string $snmp_comunity
+     * @param string $snmpComunity
      * 
      * @return $this
      */
-    public function setSnmp_comunity($snmp_comunity)
+    public function setSnmpComunity($snmpComunity)
     {
-        $this->snmp_comunity = $snmp_comunity;
+        $this->snmpComunity = $snmpComunity;
         
         return $this;
     }
 
     /**
-     * @param int $snmp_version
+     * @param int $snmpVersion
      * 
      * @return $this
      */
-    public function setSnmp_version($snmp_version)
+    public function setSnmpVersion($snmpVersion)
     {
-        $this->snmp_version = $snmp_version;
+        $this->snmpVersion = $snmpVersion;
         
         return $this;
     }
 
     /**
-     * @param boolean $execute_snmp
+     * @param boolean $executeSnmp
      * 
      * @return $this
      */
-    public function setExecute_snmp($execute_snmp)
+    public function setExecuteSnmp($executeSnmp)
     {
-        $this->execute_snmp = $execute_snmp;
+        $this->executeSnmp = $executeSnmp;
         
         return $this;
     }
-    
-    /**
-     * @return CMTSModel
-     */
-    public function getModel()
-    {
-        return $this->model;
-    }
 
     /**
      * @param CMTSModel $model
@@ -159,7 +207,7 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface
         
         return $this;
     }
-        
+            
     /**
      * @return array
      */