1 | <?php namespace Anomaly\Streams\Platform\Stream\Command; |
||
15 | class GetStream implements SelfHandling |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * The stream slug. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $slug; |
||
24 | |||
25 | /** |
||
26 | * The stream namespace. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $namespace; |
||
31 | |||
32 | /** |
||
33 | * Create a new GetStream instance. |
||
34 | * |
||
35 | * @param string $namespace |
||
36 | * @param string $slug |
||
37 | */ |
||
38 | public function __construct($namespace, $slug) |
||
43 | |||
44 | /** |
||
45 | * Handle the command. |
||
46 | * |
||
47 | * @param Container $container |
||
48 | * @return \Anomaly\Streams\Platform\Stream\Contract\StreamInterface|null |
||
49 | */ |
||
50 | public function handle(Container $container) |
||
59 | } |
||
60 |