1 | <?php |
||
17 | class CountableCollection extends CollectionAbstract |
||
18 | { |
||
19 | /** |
||
20 | * Nome do atributo que recebeu a contagem. |
||
21 | * |
||
22 | * @type string |
||
23 | */ |
||
24 | protected $attributeName; |
||
25 | |||
26 | public function setAttributeName($name) |
||
36 | /** |
||
37 | * Nome do atributo que recebeu a contagem. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | public function getAttributeName() |
||
45 | |||
46 | public function toArray() |
||
64 | } |
||
65 |