iter\rewindable\_RewindableGenerator::__call PHP Метод

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

public __call ( $method, $args )
    public function __call($method, $args)
    {
        if ($method === 'throw') {
            if (!$this->generator) {
                $this->rewind();
            }
            return $this->generator->throw(...$args);
        } else {
            // trigger normal undefined method error
            return $this->{$method}(...$args);
        }
    }