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

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

(PHP 5 >= 5.0.0)
Return the key of the current element
public key ( ) : mixed
Результат mixed scalar on success, or null on failure.
    public function key()
    {
        throw new \BadMethodCallException('Set does not have keys');
    }