|
@@ -171,6 +171,28 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
*/
|
|
|
protected $service_port;
|
|
|
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToOne(targetEntity="TContProfile", inversedBy="onus", fetch="EXTRA_LAZY")
|
|
|
+ * @ORM\JoinColumn(name="tcontprofile_id", referencedColumnName="id")
|
|
|
+ * @JMS\MaxDepth(1)
|
|
|
+ */
|
|
|
+ protected $tcontprofile;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToOne(targetEntity="TrafficProfile", inversedBy="onus", fetch="EXTRA_LAZY")
|
|
|
+ * @ORM\JoinColumn(name="traffic_profile_id", referencedColumnName="id")
|
|
|
+ * @JMS\MaxDepth(1)
|
|
|
+ */
|
|
|
+ protected $traffic_profile;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @ORM\ManyToOne(targetEntity="VLanID", inversedBy="onus", fetch="EXTRA_LAZY")
|
|
|
+ * @ORM\JoinColumn(name="vlan_id", referencedColumnName="id")
|
|
|
+ * @JMS\MaxDepth(1)
|
|
|
+ */
|
|
|
+ protected $vlan;
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* Constructor
|
|
|
*/
|
|
@@ -672,4 +694,76 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
$this->service_port = $service_port;
|
|
|
return $this;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Set tcontprofile
|
|
|
+ *
|
|
|
+ * @param \FTTHBundle\Entity\TContProfile $tcontprofile
|
|
|
+ *
|
|
|
+ * @return ONU
|
|
|
+ */
|
|
|
+ public function setTcontprofile(\FTTHBundle\Entity\TContProfile $tcontprofile = null)
|
|
|
+ {
|
|
|
+ $this->tcontprofile = $tcontprofile;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get tcontprofile
|
|
|
+ *
|
|
|
+ * @return \FTTHBundle\Entity\TContProfile
|
|
|
+ */
|
|
|
+ public function getTcontprofile()
|
|
|
+ {
|
|
|
+ return $this->tcontprofile;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Set trafficProfile
|
|
|
+ *
|
|
|
+ * @param \FTTHBundle\Entity\TrafficProfile $trafficProfile
|
|
|
+ *
|
|
|
+ * @return ONU
|
|
|
+ */
|
|
|
+ public function setTrafficProfile(\FTTHBundle\Entity\TrafficProfile $trafficProfile = null)
|
|
|
+ {
|
|
|
+ $this->traffic_profile = $trafficProfile;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get trafficProfile
|
|
|
+ *
|
|
|
+ * @return \FTTHBundle\Entity\TrafficProfile
|
|
|
+ */
|
|
|
+ public function getTrafficProfile()
|
|
|
+ {
|
|
|
+ return $this->traffic_profile;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Set vlan
|
|
|
+ *
|
|
|
+ * @param \FTTHBundle\Entity\VLanID $vlan
|
|
|
+ *
|
|
|
+ * @return ONU
|
|
|
+ */
|
|
|
+ public function setVlan(\FTTHBundle\Entity\VLanID $vlan = null)
|
|
|
+ {
|
|
|
+ $this->vlan = $vlan;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get vlan
|
|
|
+ *
|
|
|
+ * @return \FTTHBundle\Entity\VLanID
|
|
|
+ */
|
|
|
+ public function getVlan()
|
|
|
+ {
|
|
|
+ return $this->vlan;
|
|
|
+ }
|
|
|
}
|