@yield? in generators phpdoc

How do you define the type a generator yields? is there a @yield?

```

/**

* generator for integers in a range

* @param int $from

* @param int $to

* @return Generator

* @yield int

*/

function yrange(int $from, int $to)

{

   $value = $from;

   do { yield $value++; } while ($value <= $to);

}

```

Please sign in to leave a comment.