public function addSetups($type, array $setups) { foreach ($this->findByType($type) as $def) { foreach ($setups as $setup) { $def->addSetup($setup); } } }