You are here

class MagicGetByRefClass in Plug 7

Test asset class

@since 2.4

Hierarchy

Expanded class hierarchy of MagicGetByRefClass

File

lib/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