public function __construct(DB_Type_Abstract_Base $type, $given) { $items = join(',', $type->getItems()); parent::__construct($type, "output", "one of [{$items}]", $given, 0); }