You are here

public function AbstractOptions::__isset in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/AbstractOptions.php \Zend\Stdlib\AbstractOptions::__isset()

Test if a configuration property is null

Parameters

string $key:

Return value

bool

Overrides ParameterObjectInterface::__isset

See also

ParameterObject::__isset()

File

vendor/zendframework/zend-stdlib/src/AbstractOptions.php, line 148

Class

AbstractOptions

Namespace

Zend\Stdlib

Code

public function __isset($key) {
  $getter = 'get' . str_replace('_', '', $key);
  return method_exists($this, $getter) && null !== $this
    ->__get($key);
}