public function pull($key)
    {
        $key = $this->getKey($key);

        if ( ! $this->has($key))
        {
            throw new OffsetNotExistsException("Key: {$key} not exists");
        }

        return Arr::pull($this->items, $key);
    }
public function pull($key)
    {
        $key = $this->getKey($key);

        if ( ! $this->has($key))
        {
            throw new OffsetNotExistsException("Key: {$key} not exists");
        }

        return Arr::pull($this->items, $key);
    }
public function pull ( $ key ) { $ key = $ this -> getKey ( $ key ) ; if ( ! $ this -> has ( $ key ) ) { throw new OffsetNotExistsException ( "Key: {$key} not exists" ) ; } return Arr :: pull ( $ this -> items , $ key ) ; }
Get a value from a Container, and remove it.

@param mixed $key
@return mixed
@throws OffsetNotExistsException
Get a value from a Container and remove it .