Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class PagesCreate extends AbstractStep |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function init($options) |
||
23 | { |
||
24 | /** @var \Cecil\Builder $builder */ |
||
25 | $this->builder->setPages(new PagesCollection('all-pages')); |
||
26 | |||
27 | if (is_dir($this->builder->getConfig()->getContentPath())) { |
||
28 | $this->process = true; |
||
29 | } |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * {@inheritdoc} |
||
34 | */ |
||
35 | public function process() |
||
52 | } |
||
53 | } |
||
55 |