/** * Check if specification is met. * * @param string $type * * @return bool */ public function isSatisfiedBy($type) { foreach ($this->holderTypeRepository->getAllTypes() as $validType) { if ($validType->name == $type) { return true; } } return false; }