Ejemplo n.º 1
0
 public function bindCallee(Callee $callee)
 {
     $callable = $callee->getCallable();
     if ($callee->isAnInstanceMethod()) {
         return [$this->spec, $callable->getName()];
     }
     return $callable;
 }
Ejemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public final function bindCallee(Callee $callee)
 {
     return $callee->getCallable();
 }
 /**
  * {@inheritdoc}
  */
 public function bindCallee(Callee $callee)
 {
     $callable = $callee->getCallable();
     if ($callee->isAnInstanceMethod()) {
         return array($this->getContext($callable[0]), $callable[1]);
     }
     return $callable;
 }