You are here

public function ObjectProphecy::__get in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php \Prophecy\Prophecy\ObjectProphecy::__get()

Tries to get property value from double.

Parameters

string $name:

File

vendor/phpspec/prophecy/src/Prophecy/Prophecy/ObjectProphecy.php, line 264

Class

ObjectProphecy
Object prophecy.

Namespace

Prophecy\Prophecy

Code

public function __get($name) {
  return $this
    ->reveal()->{$name};
}