You are here

public function MagicGetByRefClass::__get in Plug 7

Parameters

string $name:

Return value

mixed

Throws

\InvalidArgumentException

File

lib/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();
}