isRegistered() публичный статический Метод

Returns true if the $index is a named value in the registry, or false if $index was not found in the registry.
public static isRegistered ( string $index ) : boolean
$index string Index
Результат boolean
Пример #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testOffsetExists()
 {
     $this->object->set('key', 'value');
     $this->assertTrue($this->object->isRegistered('key'));
 }