for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiqdev\billing\hiapi\bill\Search;
use Doctrine\Common\Collections\ArrayCollection;
use hiqdev\billing\hiapi\bill\BillRepository;
class BillBulkSearchAction
{
/**
* @var BillRepository
*/
private $repo;
public function __construct(BillRepository $repo)
$this->repo = $repo;
}
public function __invoke(BillSearchCommand $command): ArrayCollection
$res = $this->repo->findAll($command->getSpecification());
return new ArrayCollection($res);