You are here

class MagicGetByRefClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicGetByRefClass.php \Doctrine\Tests\Common\Proxy\MagicGetByRefClass

Test asset class

@since 2.4

Hierarchy

Expanded class hierarchy of MagicGetByRefClass

File

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

Namespace

Doctrine\Tests\Common\Proxy
View source
class MagicGetByRefClass {

  /**
   * @var mixed
   */
  public $valueField;

  /**
   * @param string $name
   *
   * @return mixed
   *
   * @throws \InvalidArgumentException
   */
  public function &__get($name) {
    if ($name === 'value') {
      return $this->valueField;
    }
    throw new InvalidArgumentException();
  }

}

Members