protected function buildConstants(ConstantsInterface $model) { foreach ($model->getConstants() as $constant) { $this->generate($constant); } }