Phan\Language\Element\TypedElement::__clone PHP Method

__clone() public method

After a clone is called on this object, clone our type and fqsen so that they survive copies intact
public __clone ( ) : null
return null
    public function __clone()
    {
        $this->context = $this->context ? clone $this->context : $this->context;
        $this->type = $this->type ? clone $this->type : $this->type;
    }

Usage Example

 /**
  * After a clone is called on this object, clone our
  * type and fqsen so that they survive copies intact
  *
  * @return void
  */
 public function __clone()
 {
     parent::__clone();
     $this->setFQSEN(clone $this->getFQSEN());
 }