class MagicGetByRefClass in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicGetByRefClass.php \Doctrine\Tests\Common\Proxy\MagicGetByRefClass
Test asset class
@since 2.4
Hierarchy
- class \Doctrine\Tests\Common\Proxy\MagicGetByRefClass
Expanded class hierarchy of MagicGetByRefClass
File
- vendor/doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ MagicGetByRefClass.php, line 29 
Namespace
Doctrine\Tests\Common\ProxyView 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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| MagicGetByRefClass:: | public | property | ||
| MagicGetByRefClass:: | public | function | 
