You are here

public function MagicIssetClass::__isset in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/MagicIssetClass.php \Doctrine\Tests\Common\Proxy\MagicIssetClass::__isset()

Parameters

string $name:

Return value

bool

Throws

\BadMethodCallException

File

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