mageekguy\atoum\test\adapter\call::copy PHP Метод

copy() публичный Метод

public copy ( call $call )
$call call
    public function copy(call $call)
    {
        $this->function = $call->function;
        $this->arguments = $call->arguments;
        $this->decorator = $call->decorator;
        return $this;
    }

Usage Example

Пример #1
0
 public function setCall(test\adapter\call $call = null)
 {
     if ($call === null) {
         $call = new test\adapter\call();
     }
     if ($this->call !== null) {
         $call->copy($this->call);
     }
     $this->call = $call;
     return $this;
 }