Set serializers

@param array $serializers An array of serializer

@throws \Exception

@return $this Return $this, allow chaining
3884
public function setSerializers(array $serializers)
    {
        $this->serializers = [];

        foreach ($serializers as $serializer) {
            if (!($serializer instanceof SerializerInterface)) {
                throw new \Exception('SerializerManager manage only ' . __NAMESPACE__ . '\\SerializerInterface');
            }

            $this->serializers[$serializer->getId()] = $serializer;
        }

        return $this;
    }
1150407
def register_serializers(self, serializers):
        
        for new_serializer in serializers:

            if not isinstance(new_serializer, serializer.Base):
                msg = "registered serializer %s.%s does not inherit from prestans.serializer.Serializer" % (
                    new_serializer.__module__,
                    new_serializer.__class__.__name__
                )
                raise TypeError(msg)

        self._serializers = self._serializers + serializers
792656
public function setLoaders($loaders)
    {
        if ($loaders instanceof LoaderInterface) {
            $loaders = [$loaders];
        }

        foreach ($loaders as $name => $loader) {
            $this->setLoader($name, $loader);
        }
    }
990072
public function setServices(array $services = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$services', $services, __NAMESPACE__ . '\Service');

        $this->services = $services;

        return $this;
    }
1240401
public function setServices(Array $services) {
    $this->services = array();
    foreach ($services as $service) {
      $this->addService($service);
    }
    return $this;
  }
890138
public function setFilters(array $filters)
    {
        $this->filters = $filters;

        $this->updateInternalState();

        $this->handleChangedParameters();

        return $this;
    }
1031994
static protected function checkSerializer_( $serializer ):void
	{
		if(!(
			(
				is_object( $serializer )
			&&
				$serializer instanceof S\ASerializer
			)
		or
			(
				is_string( $serializer )
			&&
				class_exists( $serializer )
			&&
				isset( class_parents( $serializer )[S\ASerializer::class] )
			)
		)){
			$caller= debug_backtrace( DEBUG_BACKTRACE_IGNORE_ARGS, 2 )[1];

			throw new \TypeError(
				"Argument 2 passed to {$caller['class']}{$caller['type']}{$caller['function']}() must be an class extends ".S\ASerializer::class.' or it\'s instance'
			);
		}
	}
146641
public function setClassAttr($classes)
    {
        if (is_array($classes)) {
            $classes = implode(' ', $classes);
        }

        $this->classAttr = $classes;

        return $this;
    }
398886
protected function serializer()
    {
        if (null === $this->serializer) {
            $self = $this;
            $this->serializer = Closure::bind($this->bindSerializer(), null, $this->class);
        }
        return $this->serializer;
    }
1308671
public function serializeColumns($serializeColumns = null)
    {
        if ($serializeColumns === null)
        {
            return $this->_serializeColumns;
        }
        $this->_serializeColumns = $serializeColumns;

        return $this;
    }
851785
public function setFilters($filters = []) {
		if ($filters) {
			foreach ($filters as $key => $value) {
				$this->setFilter($key, $value);
			}
		}

		return $this;
	}
1068097
public function set($columnFilters)
    {
        if (! is_array($columnFilters)) {
            $columnFilters = func_get_args();
        }

        $this->columnFilters = [];

        foreach ($columnFilters as $filter) {
            $this->push($filter);
        }

        return $this;
    }
554241
public function serializer($serializer):SuccessResponseBuilder
    {
        $this->manager->setSerializer($this->resolveSerializer($serializer));

        return $this;
    }
1359211
public function setFilters(array $filters)
    {
        $this->clearFilters();
        foreach ($filters as $filter) {
            $this->addFilter($filter);
        }

        return $this;
    }
1275615
public function setFields(array $fields)
    {
        foreach ($fields as $key => $field) {
            $this->setField($key, $field);
        }

        return $this;
    }
603051
public function setDispatchers(array $dispatchers)
    {
        foreach ($dispatchers as $name => $dispatcher) {
            $this->addDispatcher($name, $dispatcher);
        }

        return $this;
    }
650830
public function setDrivers(array $drivers)
    {
        foreach ($drivers as $name => $config) {
            $this->setDriver($name, $config);
        }

        return $this;
    }