add docblock type elements to support newly added IteratorAggregate::getIterator PhpStorm support
This commit is contained in:
parent
a77431c85b
commit
ede35568bf
@ -20,6 +20,9 @@ use Symfony\Component\Console\Command\Command;
|
|||||||
*/
|
*/
|
||||||
class HelperSet implements \IteratorAggregate
|
class HelperSet implements \IteratorAggregate
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var Helper[]
|
||||||
|
*/
|
||||||
private $helpers = array();
|
private $helpers = array();
|
||||||
private $command;
|
private $command;
|
||||||
|
|
||||||
@ -109,6 +112,9 @@ class HelperSet implements \IteratorAggregate
|
|||||||
return $this->command;
|
return $this->command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return Helper[]
|
||||||
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
return new \ArrayIterator($this->helpers);
|
return new \ArrayIterator($this->helpers);
|
||||||
|
@ -646,7 +646,7 @@ class Finder implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* This method implements the IteratorAggregate interface.
|
* This method implements the IteratorAggregate interface.
|
||||||
*
|
*
|
||||||
* @return \Iterator An iterator
|
* @return \Iterator|SplFileInfo[] An iterator
|
||||||
*
|
*
|
||||||
* @throws \LogicException if the in() method has not been called
|
* @throws \LogicException if the in() method has not been called
|
||||||
*/
|
*/
|
||||||
|
@ -47,6 +47,8 @@ class ChoiceGroupView implements \IteratorAggregate
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return ChoiceGroupView[]|ChoiceView[]
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -1022,7 +1022,7 @@ class Form implements \IteratorAggregate, FormInterface
|
|||||||
/**
|
/**
|
||||||
* Returns the iterator for this group.
|
* Returns the iterator for this group.
|
||||||
*
|
*
|
||||||
* @return \Traversable
|
* @return \Traversable|FormInterface[]
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -231,6 +231,8 @@ class FormBuilder extends FormConfigBuilder implements \IteratorAggregate, FormB
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return FormBuilderInterface[]
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -143,7 +143,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
|
|||||||
/**
|
/**
|
||||||
* Returns an iterator to iterate over children (implements \IteratorAggregate).
|
* Returns an iterator to iterate over children (implements \IteratorAggregate).
|
||||||
*
|
*
|
||||||
* @return \ArrayIterator The iterator
|
* @return \ArrayIterator|FormView[] The iterator
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,7 @@ class DumperCollection implements \IteratorAggregate
|
|||||||
private $parent;
|
private $parent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var (DumperCollection|DumperRoute)[]
|
* @var DumperCollection[]|DumperRoute[]
|
||||||
*/
|
*/
|
||||||
private $children = array();
|
private $children = array();
|
||||||
|
|
||||||
@ -38,7 +38,7 @@ class DumperCollection implements \IteratorAggregate
|
|||||||
/**
|
/**
|
||||||
* Returns the children routes and collections.
|
* Returns the children routes and collections.
|
||||||
*
|
*
|
||||||
* @return (DumperCollection|DumperRoute)[] Array of DumperCollection|DumperRoute
|
* @return DumperCollection[]|DumperRoute[] Array of DumperCollection|DumperRoute
|
||||||
*/
|
*/
|
||||||
public function all()
|
public function all()
|
||||||
{
|
{
|
||||||
@ -76,7 +76,7 @@ class DumperCollection implements \IteratorAggregate
|
|||||||
/**
|
/**
|
||||||
* Returns an iterator over the children.
|
* Returns an iterator over the children.
|
||||||
*
|
*
|
||||||
* @return \Iterator The iterator
|
* @return \Iterator|DumperCollection[]|DumperRoute[] The iterator
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -49,7 +49,7 @@ class RouteCollection implements \IteratorAggregate, \Countable
|
|||||||
*
|
*
|
||||||
* @see all()
|
* @see all()
|
||||||
*
|
*
|
||||||
* @return \ArrayIterator An \ArrayIterator object for iterating over routes
|
* @return \ArrayIterator|Route[] An \ArrayIterator object for iterating over routes
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
@ -107,6 +107,8 @@ class ConstraintViolationList implements \IteratorAggregate, ConstraintViolation
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
|
*
|
||||||
|
* @return \ArrayIterator|ConstraintViolationInterface[]
|
||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user