/** * Stub function from user space (global one). * * @param string $name */ public function userFunction($name) { $this->data = $name; $this->type = self::TYPE_FUNCTION; return PStub_Stubber::create($this); }
/** * Stub entity in class * * @param string $name * @return PStub_Stubber */ public function inClass($name) { $this->name = $name; return PStub_Stubber::create($this->entity, $this); }