PhpSpec\Wrapper\Subject::getWrappedObject PHP Méthode

getWrappedObject() public méthode

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

Usage Example

Exemple #1
0
 /**
  * Gets the unwrapped proxied object from PhpSpec subject
  *
  * @return object
  */
 public function getWrappedObject()
 {
     return $this->object->getWrappedObject();
 }