Scalr\Model\Entity\CloudCredentials::__clone PHP Method

__clone() public method

Reset cloud credentials id on clone
public __clone ( )
    public function __clone()
    {
        $this->_properties = clone $this->properties;
        $unref = null;
        $this->id =& $unref;
        $this->name = "{$this->envId}-{$this->accountId}-{$this->cloud}-" . \Scalr::GenerateUID(true);
        $this->_properties->setCriteria([['cloudCredentialsId' => &$this->id]]);
        $this->_properties->setDefaultProperties(['cloudCredentialsId' => &$this->id]);
    }