You are here

public function MagicGetByRefClass::__get in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicGetByRefClass.php \Doctrine\Tests\Common\Proxy\MagicGetByRefClass::__get()

Parameters

string $name:

Return value

mixed

Throws

\InvalidArgumentException

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicGetByRefClass.php, line 43

Class

MagicGetByRefClass
Test asset class

Namespace

Doctrine\Tests\Common\Proxy

Code

public function &__get($name) {
  if ($name === 'value') {
    return $this->valueField;
  }
  throw new InvalidArgumentException();
}