|
@@ -34,10 +34,10 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
* @Assert\NotNull
|
|
|
*/
|
|
|
private $name;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @ORM\OneToMany(targetEntity="OLT", mappedBy="model", fetch="EXTRA_LAZY")
|
|
|
- *
|
|
|
+ *
|
|
|
* @JMS\MaxDepth(2)
|
|
|
*/
|
|
|
protected $olts;
|
|
@@ -53,7 +53,7 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
* @ORM\Column(type="string", length=255, nullable=true)
|
|
|
*/
|
|
|
protected $mark;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @var string $library
|
|
|
*
|
|
@@ -61,15 +61,21 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
*/
|
|
|
protected $library;
|
|
|
|
|
|
+ /**
|
|
|
+ * @var string $netmiko
|
|
|
+ *
|
|
|
+ * @ORM\Column(type="string", length=255, nullable=true)
|
|
|
+ */
|
|
|
+ protected $netmiko;
|
|
|
|
|
|
/**
|
|
|
* @return string
|
|
|
*/
|
|
|
public function __toString()
|
|
|
{
|
|
|
- return (string) $this->name;
|
|
|
+ return (string)$this->name;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* Get id
|
|
|
*
|
|
@@ -99,7 +105,7 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->name;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @param OLT $olt
|
|
|
* @return OLTModel
|
|
@@ -107,7 +113,7 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
public function addOlt(ONU $olt)
|
|
|
{
|
|
|
$this->olts[] = $olt;
|
|
|
-
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
|
|
@@ -118,12 +124,12 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
public function removeOlt(OLT $olt)
|
|
|
{
|
|
|
$this->olts->removeElement($olt);
|
|
|
-
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
- * @return Doctrine\Common\Collections\Collection
|
|
|
+ * @return Doctrine\Common\Collections\Collection
|
|
|
*/
|
|
|
public function getOlts()
|
|
|
{
|
|
@@ -145,10 +151,10 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
public function setProps($props)
|
|
|
{
|
|
|
$this->props = $props;
|
|
|
-
|
|
|
+
|
|
|
return $this;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @param string $mark
|
|
|
*
|
|
@@ -168,7 +174,7 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->mark;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* @param string $library
|
|
|
*
|
|
@@ -188,4 +194,22 @@ class OLTModel implements TenancyIdTraitInterface
|
|
|
{
|
|
|
return $this->library;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function getNetmiko()
|
|
|
+ {
|
|
|
+ return $this->netmiko;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @param string $netmiko
|
|
|
+ */
|
|
|
+ public function setNetmiko($netmiko)
|
|
|
+ {
|
|
|
+ $this->netmiko = $netmiko;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|