/** * Generate Fixtures Classes * * @return bool */ public function generateClasses() { $this->cnt = 0; $configuration = $this->configReader->read('constraint'); foreach ($configuration as $name => $item) { $this->generateClass($name, $item); } \Mtf\Util\Generate\GenerateResult::addResult('Constraint Classes', $this->cnt); }
/** * Generate Repositories XML * * @return void */ protected function generateXml() { $this->cnt = 0; $configuration = $this->configReader->read('fixture'); foreach ($configuration as $name => $item) { $this->generateRepositoryXml($name, $item); } \Mtf\Util\Generate\GenerateResult::addResult('Repository XML Files', $this->cnt); }
/** * Generate Handlers * * @return bool */ protected function generateHandlers() { $this->cnt = 0; $configuration = $this->configReader->read('fixture'); foreach ($configuration as $name => $item) { $this->generateInterface($name, $item); $this->generateCurl($name, $item); $this->generateUi($name, $item); } \Mtf\Util\Generate\GenerateResult::addResult('Handlers', $this->cnt); }
/** * @constructor * @param ObjectManager $objectManager * @param Reader $fixtureReader */ public function __construct(ObjectManager $objectManager, Reader $fixtureReader) { parent::__construct($objectManager); $this->configuration = $fixtureReader->read('fixture'); }
/** * @constructor * @param ObjectManager $objectManager * @param Reader $constraintReader */ public function __construct(ObjectManager $objectManager, Reader $constraintReader) { $this->objectManager = $objectManager; $this->configuration = $constraintReader->read('constraint'); }