1 | <?php |
||
13 | class Catalog implements Contract |
||
14 | { |
||
15 | /** |
||
16 | * Holds a instance of config. |
||
17 | * |
||
18 | * @var Config |
||
19 | */ |
||
20 | private $config; |
||
21 | |||
22 | /** |
||
23 | * Holds a instance of InputInterface. |
||
24 | * |
||
25 | * @var InputInterface |
||
26 | */ |
||
27 | private $input; |
||
28 | |||
29 | /** |
||
30 | * Holds a instance of OutputInterface. |
||
31 | * |
||
32 | * @var OutputInterface |
||
33 | */ |
||
34 | private $output; |
||
35 | |||
36 | /** |
||
37 | * Holds an array of instances of Bag. |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | private $bags; |
||
42 | |||
43 | /** |
||
44 | * @var Jobs\Catalog\Writer |
||
45 | */ |
||
46 | private $catalogWriter; |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function __construct(Config $config, InputInterface $input, OutputInterface $output) |
||
64 | |||
65 | /** |
||
66 | * Checks if the catalog is empty. |
||
67 | * |
||
68 | * @return bool |
||
69 | */ |
||
70 | public function isEmpty() |
||
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | public function displayTable() |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function displayDetail($rowKey) |
||
101 | } |