You are here

public function RuntimePublicReflectionPropertyTestProxyMock::__get in Plug 7

Parameters

string $name:

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Reflection/RuntimePublicReflectionPropertyTest.php, line 139

Class

RuntimePublicReflectionPropertyTestProxyMock
Mock that simulates proxy public property lazy loading

Namespace

Doctrine\Tests\Common\Reflection

Code

public function __get($name) {
  if ($this->initializer) {
    $cb = $this->initializer;
    $cb();
  }
  return $this->checkedProperty;
}