nspl\ds\Set::offsetExists PHP Метод

offsetExists() публичный Метод

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $index ) : boolean
$index mixed

An offset to check for.

Результат boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

    public function offsetExists($index)
    {
        throw new \BadMethodCallException('Set does not support indexing');
    }