| 1 | <?php |
||
| 20 | class Storage |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var SubscriberInterface[] |
||
| 24 | */ |
||
| 25 | protected $subscribers = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var Container |
||
| 29 | */ |
||
| 30 | protected $container; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @var RoomInterface |
||
| 34 | */ |
||
| 35 | protected $room; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Storage constructor. |
||
| 39 | * |
||
| 40 | * @param Container $container |
||
| 41 | * @param RoomInterface $room |
||
| 42 | */ |
||
| 43 | public function __construct(Container $container, RoomInterface $room) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param $class |
||
| 51 | * @return $this |
||
| 52 | */ |
||
| 53 | public function add($class) |
||
| 64 | } |