class MagicGetClass in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicGetClass.php \Doctrine\Tests\Common\Proxy\MagicGetClass
Test asset class
Hierarchy
- class \Doctrine\Tests\Common\Proxy\MagicGetClass
Expanded class hierarchy of MagicGetClass
File
- vendor/
doctrine/ common/ tests/ Doctrine/ Tests/ Common/ Proxy/ MagicGetClass.php, line 8
Namespace
Doctrine\Tests\Common\ProxyView source
class MagicGetClass {
/**
* @var string
*/
public $id = 'id';
/**
* @var string
*/
public $publicField = 'publicField';
/**
* @param $name
*
* @return string
* @throws \BadMethodCallException
*/
public function __get($name) {
if ($name === 'test') {
return 'test';
}
if ($name === 'publicField' || $name === 'id') {
throw new \BadMethodCallException('Should never be called for "publicField" or "id"');
}
return 'not defined';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MagicGetClass:: |
public | property | ||
MagicGetClass:: |
public | property | ||
MagicGetClass:: |
public | function |