public function yieldify()
    {
        foreach ($this->storage as $key => $value) {
            yield (object) [
                'value' => $value,
                'key' => $key,
                'done' => false
            ];
        }

        yield (object) [
            'value' => null,
            'key' => null,
            'done' => true
        ];
    }
public function yieldify()
    {
        foreach ($this->storage as $key => $value) {
            yield (object) [
                'value' => $value,
                'key' => $key,
                'done' => false
            ];
        }

        yield (object) [
            'value' => null,
            'key' => null,
            'done' => true
        ];
    }
public function yieldify ( ) { foreach ( $ this -> storage as $ key => $ value ) { yield ( object ) [ 'value' => $ value , 'key' => $ key , 'done' => false ] ; } yield ( object ) [ 'value' => null , 'key' => null , 'done' => true ] ; }
Launches a generator

@return \Generator
Launches a generator