1 | <?php namespace Anomaly\Streams\Platform\Stream\Command; |
||
14 | class GetStreams implements SelfHandling |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * The stream namespace. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $namespace; |
||
23 | |||
24 | /** |
||
25 | * Create a new GetStreams instance. |
||
26 | * |
||
27 | * @param string $namespace |
||
28 | */ |
||
29 | public function __construct($namespace) |
||
33 | |||
34 | /** |
||
35 | * Handle the command. |
||
36 | * |
||
37 | * @param StreamRepositoryInterface $streams |
||
38 | * @return \Anomaly\Streams\Platform\Stream\Contract\StreamInterface|null |
||
39 | */ |
||
40 | public function handle(StreamRepositoryInterface $streams) |
||
44 | } |
||
45 |