| 1 | <?php |
||
| 22 | class RoomManager |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * @var Collection |
||
| 26 | */ |
||
| 27 | protected $rooms; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * RoomManager constructor. |
||
| 31 | * |
||
| 32 | * @param array $rooms |
||
| 33 | */ |
||
| 34 | public function __construct(array $rooms = []) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param RoomInterface $room |
||
| 41 | * |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | public function register(RoomInterface $room) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param string $id |
||
| 53 | * |
||
| 54 | * @return RoomInterface|null |
||
| 55 | */ |
||
| 56 | public function get($id) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return array |
||
| 69 | */ |
||
| 70 | public function all() |
||
| 74 | } |
||
| 75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.