|
@@ -20,7 +20,7 @@ use WorkflowBundle\Entity\Traits\WorkflowTrait;
|
|
|
/**
|
|
|
* @ORM\Entity
|
|
|
* @UniqueEntity("ip")
|
|
|
- *
|
|
|
+ *
|
|
|
* @ValidatorAssert\Device
|
|
|
*/
|
|
|
class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface, WorkflowInterface
|
|
@@ -49,7 +49,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
|
|
|
/**
|
|
|
* @var string $ip
|
|
|
- *
|
|
|
+ *
|
|
|
* @ORM\Column(type="string", length=50, nullable=false, unique=true)
|
|
|
* @Assert\NotNull
|
|
|
*/
|
|
@@ -86,32 +86,32 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* @ORM\ManyToOne(targetEntity="OLTModel", inversedBy="olts", fetch="EXTRA_LAZY")
|
|
|
* @ORM\JoinColumn(name="model_id", referencedColumnName="id", onDelete="SET NULL")
|
|
|
- *
|
|
|
+ *
|
|
|
* @JMS\MaxDepth(1)
|
|
|
*/
|
|
|
protected $model;
|
|
|
|
|
|
/**
|
|
|
* @ORM\OneToMany(targetEntity="ONU", mappedBy="olt", fetch="EXTRA_LAZY")
|
|
|
- *
|
|
|
+ *
|
|
|
* @JMS\MaxDepth(2)
|
|
|
*/
|
|
|
protected $onus;
|
|
|
|
|
|
/**
|
|
|
- * @ORM\Column(type="string", nullable=true)
|
|
|
+ * @ORM\Column(type="string", nullable=true)
|
|
|
*/
|
|
|
protected $currentState = null;
|
|
|
|
|
|
/**
|
|
|
- * @ORM\Column(type="string", nullable=false, options={"default": "success"})
|
|
|
+ * @ORM\Column(type="string", nullable=false, options={"default": "success"})
|
|
|
*/
|
|
|
protected $transitionState = 'success';
|
|
|
|
|
|
/**
|
|
|
* @ORM\ManyToOne(targetEntity="\WorkflowBundle\Entity\Workflow", fetch="EXTRA_LAZY")
|
|
|
* @ORM\JoinColumn(name="workflow_id", referencedColumnName="id", onDelete="SET NULL")
|
|
|
- *
|
|
|
+ *
|
|
|
* @JMS\MaxDepth(1)
|
|
|
*/
|
|
|
protected $workflow;
|
|
@@ -140,12 +140,12 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
* @ORM\Column(type="integer", options={"unsigned":true, "default":5})
|
|
|
*/
|
|
|
protected $timeOnuStats = 5;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @ORM\Column(type="string", nullable=true)
|
|
|
*/
|
|
|
protected $enable;
|
|
|
-
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* @return string
|
|
@@ -281,7 +281,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * @return Doctrine\Common\Collections\Collection
|
|
|
+ * @return Doctrine\Common\Collections\Collection
|
|
|
*/
|
|
|
public function getOnus()
|
|
|
{
|
|
@@ -373,7 +373,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* Get executeSnmp
|
|
|
*
|
|
|
- * @return boolean
|
|
|
+ * @return boolean
|
|
|
*/
|
|
|
public function getExecuteSnmp()
|
|
|
{
|
|
@@ -393,7 +393,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* Get timeScan
|
|
|
*
|
|
|
- * @return integer
|
|
|
+ * @return integer
|
|
|
*/
|
|
|
public function getTimeScan()
|
|
|
{
|
|
@@ -413,7 +413,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* Get timeOltOctets
|
|
|
*
|
|
|
- * @return integer
|
|
|
+ * @return integer
|
|
|
*/
|
|
|
public function getTimeOltOctets()
|
|
|
{
|
|
@@ -433,7 +433,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* Get timeOnuStats
|
|
|
*
|
|
|
- * @return integer
|
|
|
+ * @return integer
|
|
|
*/
|
|
|
public function getTimeOnuStats()
|
|
|
{
|
|
@@ -453,31 +453,39 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
|
|
|
/**
|
|
|
* Get timePonStats
|
|
|
*
|
|
|
- * @return integer
|
|
|
+ * @return integer
|
|
|
*/
|
|
|
public function getTimePonStats()
|
|
|
{
|
|
|
return $this->timePonStats;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @return string
|
|
|
*/
|
|
|
- public function getEnable()
|
|
|
+ public function getEnable()
|
|
|
{
|
|
|
return $this->enable;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @param string $enable
|
|
|
- *
|
|
|
+ *
|
|
|
* @return $this
|
|
|
*/
|
|
|
- public function setEnable($enable)
|
|
|
+ public function setEnable($enable)
|
|
|
{
|
|
|
$this->enable = $enable;
|
|
|
-
|
|
|
+
|
|
|
return $this;
|
|
|
- }
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return int
|
|
|
+ */
|
|
|
+ public function getLibraryVersion()
|
|
|
+ {
|
|
|
+ return $this->libraryVersion;
|
|
|
+ }
|
|
|
|
|
|
-}
|
|
|
+}
|