Example #1
0
 /**
  * After a clone is called on this object, clone our
  * type and fqsen so that they survive copies intact
  *
  * @return null
  */
 public function __clone()
 {
     parent::__clone();
     $this->type = $this->type ? clone $this->type : $this->type;
     // Clone the FQSEN if it exists
     if (isset($this->fqsen)) {
         $this->fqsen = $this->fqsen ? clone $this->fqsen : $this->fqsen;
     }
 }
 /**
  * After a clone is called on this object, clone our
  * type and fqsen so that they survive copies intact
  *
  * @return null
  */
 public function __clone()
 {
     parent::__clone();
     $this->type = $this->type ? clone $this->type : $this->type;
     // Clone the FQSEN if it exists
     if ($this instanceof Addressable) {
         if ($this->getFQSEN()) {
             $this->setFQSEN(clone $this->getFQSEN());
         }
     }
 }