for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* User: delboy1978uk
* Date: 19/11/2016
* Time: 12:18
*/
namespace Del\Form\Collection;
use Del\Common\Collection\AbstractCollection;
use Del\Common\Collection\CollectionInterface;
use Del\Form\Field\FieldInterface;
class FieldCollection extends AbstractCollection implements CollectionInterface
{
* @param $name
public function findByName($name)
$this->rewind();
while ($this->valid()) {
/** @var FieldInterface $field */
$field = $this->current();
if($field->getName() == $name) {
return $field;
}
return null;