Capsule::putCopy PHP Method

putCopy() public method

This is primarily to force copying (cloning) of objects, rather than the default behavior which is to assign them by reference.
public putCopy ( string $name, mixed $value )
$name string
$value mixed
    function putCopy($name, $value)
    {
        if (is_object($value)) {
            $value = clone $value;
        }
        $this->vars[$name] = $value;
    }