Answer the question
In order to leave comments, you need to log in
How to properly process a collection?
There is a collection of objects, for example:
class Object
{
protected $name
protected $status;
}
class ObjectCollection
{
protected $items = [];
//...
}
$collection = new ObjectCollection();
$collection->add(new Object());
$collection->add(new Object());
//...
$checker = new Checker();
$collection = $checker->process($collection);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question