Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
TicketprinterList
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
3
100.00% covered (success)
100.00%
1 / 1
 getEntityByHash
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
3
1<?php
2
3namespace BO\Zmsentities\Collection;
4
5class TicketprinterList extends Base
6{
7    public const ENTITY_CLASS = '\BO\Zmsentities\Ticketprinter';
8
9    public function getEntityByHash($hash)
10    {
11        $result = null;
12        foreach ($this as $entity) {
13            if ($entity->hash == $hash) {
14                $result = $entity;
15            }
16        }
17        return $result;
18    }
19}