<?php
$result = $tags->filter(function($v) use ($type) {
return $v->getType() === $type;
});
<?php
public function getRows()
{
return $this->rows;
}
<?php
public function findOneBy(FilterCollectionInterface $criteria)
{
$out = $this->findBy($criteria);
$out->setMaxResults(1);
return $out;
}
<?php
public function setRows($rows)
{
$this->rows = $rows;
return $this;
}