1 | <?php |
||
20 | final class ArtLoader implements FixtureLoader |
||
21 | { |
||
22 | const NAME = 'art'; |
||
23 | |||
24 | /** |
||
25 | * @var \League\CLImate\CLImate |
||
26 | */ |
||
27 | private $cli; |
||
28 | |||
29 | /** |
||
30 | * @var \League\CLImate\Util\Output |
||
31 | */ |
||
32 | private $output; |
||
33 | |||
34 | /** |
||
35 | * @var \holyshared\fixture\Loader |
||
36 | */ |
||
37 | private $loader; |
||
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | */ |
||
42 | public function getName() |
||
46 | |||
47 | /** |
||
48 | * Create a new art loader |
||
49 | * |
||
50 | * @param \holyshared\fixture\Loader |
||
51 | */ |
||
52 | public function __construct(Loader $loader) |
||
53 | { |
||
54 | $this->output = new Output(); |
||
55 | $this->output->sameLine(); |
||
56 | $this->output->defaultTo('buffer'); |
||
57 | |||
58 | $this->cli = new CLImate(); |
||
59 | $this->cli->setOutput($this->output); |
||
60 | $this->loader = $loader; |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function load($path, array $arguments = []) |
||
74 | |||
75 | } |
||
76 |