|
@@ -82,6 +82,11 @@ class Profile implements TenancyIdTraitInterface
|
|
|
*/
|
|
|
protected $maxCpe;
|
|
|
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ $this->downstream = $this->getDefault('downstream');
|
|
|
+ $this->upstream = $this->getDefault('upstream');
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* @return string
|
|
@@ -166,7 +171,12 @@ class Profile implements TenancyIdTraitInterface
|
|
|
*/
|
|
|
public function setDownstream($downstream)
|
|
|
{
|
|
|
- $this->downstream = $downstream;
|
|
|
+ if(is_null($downstream)) {
|
|
|
+ $this->downstream = $this->getDefault('downstream');
|
|
|
+ } else {
|
|
|
+ $this->downstream = $downstream;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
@@ -178,7 +188,12 @@ class Profile implements TenancyIdTraitInterface
|
|
|
*/
|
|
|
public function setUpstream($upstream)
|
|
|
{
|
|
|
- $this->upstream = $upstream;
|
|
|
+ if(is_null($upstream)) {
|
|
|
+ $this->upstream = $this->getDefault('upstream');
|
|
|
+ } else {
|
|
|
+ $this->upstream = $upstream;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return $this;
|
|
|
}
|