39 lines
650 B
PHP
39 lines
650 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Common\Proxy;
|
|
|
|
/**
|
|
* Test asset class
|
|
*/
|
|
class MagicIssetClass
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $id = 'id';
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $publicField = 'publicField';
|
|
|
|
/**
|
|
* @param string $name
|
|
*
|
|
* @return bool
|
|
* @throws \BadMethodCallException
|
|
*/
|
|
public function __isset($name)
|
|
{
|
|
if ('test' === $name) {
|
|
return true;
|
|
}
|
|
|
|
if ('publicField' === $name || 'id' === $name) {
|
|
throw new \BadMethodCallException('Should never be called for "publicField" or "id"');
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|