1 | <?php |
||
24 | class Catalog implements Contract |
||
25 | { |
||
26 | /** |
||
27 | * Holds a instance of config. |
||
28 | * |
||
29 | * @var Config |
||
30 | */ |
||
31 | private $config; |
||
32 | |||
33 | /** |
||
34 | * Holds a instance of InputInterface. |
||
35 | * |
||
36 | * @var InputInterface |
||
37 | */ |
||
38 | private $input; |
||
39 | |||
40 | /** |
||
41 | * Holds a instance of OutputInterface. |
||
42 | * |
||
43 | * @var OutputInterface |
||
44 | */ |
||
45 | private $output; |
||
46 | |||
47 | /** |
||
48 | * Holds an array of instances of Bag. |
||
49 | * |
||
50 | * @var array |
||
51 | */ |
||
52 | private $bags; |
||
53 | |||
54 | /** |
||
55 | * @var Jobs\Catalog\Writer |
||
56 | */ |
||
57 | private $catalogWriter; |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function __construct(Config $config, InputInterface $input, OutputInterface $output) |
||
75 | |||
76 | /** |
||
77 | * Checks if the catalog is empty. |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function isEmpty() |
||
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | public function displayTable() |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function displayDetail($rowKey) |
||
112 | } |
||
113 |