| 1 | <?php |
||
| 12 | class ContactCollection extends ArrayCollection |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param mixed $offset |
||
| 16 | * |
||
| 17 | * @return Contact|null |
||
| 18 | */ |
||
| 19 | public function offsetGet($offset) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param Contact $contact |
||
| 26 | * |
||
| 27 | * @return void |
||
| 28 | */ |
||
| 29 | public function add($contact) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return array |
||
| 43 | */ |
||
| 44 | public function toAPI() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $email |
||
| 53 | * |
||
| 54 | * @return Contact|null |
||
| 55 | */ |
||
| 56 | public function findByEmail($email) |
||
| 64 | } |
||
| 65 |