You are here

public function MagicIssetClass::__isset in Plug 7

Parameters

string $name:

Return value

bool

Throws

\BadMethodCallException

File

lib/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicIssetClass.php, line 26

Class

MagicIssetClass
Test asset class

Namespace

Doctrine\Tests\Common\Proxy

Code

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;
}