PhpSpec\Wrapper\Subject::getWrappedObject PHP Method

getWrappedObject() public method

public getWrappedObject ( ) : mixed
return mixed
    public function getWrappedObject()
    {
        if ($this->subject) {
            return $this->subject;
        }
        return $this->subject = $this->caller->getWrappedObject();
    }

Usage Example

コード例 #1
0
ファイル: ObjectBehavior.php プロジェクト: phpspec/phpspec
 /**
  * Gets the unwrapped proxied object from PhpSpec subject
  *
  * @return object
  */
 public function getWrappedObject()
 {
     return $this->object->getWrappedObject();
 }