| 1 | <?php |
||
| 7 | class ChainBuildStrategy implements BuildStrategyInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var BuildStrategyInterface[] A list of strategy to use for this builder |
||
| 11 | */ |
||
| 12 | private $strategies = array(); |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Add a build strategy to builder |
||
| 16 | * |
||
| 17 | * @param BuildStrategyInterface $strategy Strategy to add |
||
| 18 | */ |
||
| 19 | public function pushStrategy(BuildStrategyInterface $strategy) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function getJobs($directory) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function prepareJob(Job $job) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | */ |
||
| 51 | public function getName() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritdoc} |
||
| 58 | */ |
||
| 59 | public function supportProject($directory) |
||
| 69 | } |
||
| 70 |