Set eol

@param string $eol

@return Template

@throws \InvalidArgumentException
328173
public function setEol($eol)
    {
        if (!is_string($eol)) {
            throw new \InvalidArgumentException('The attribute eol on the class Template has to be string (' . gettype($eol) . ('object' === gettype($eol) ? ' ' . get_class($eol) : '') . ' given).');
        }

        $this->eol = $eol;

        return $this;
    }
473407
private function generate($level, $eol)
    {
        $handler = new RenderHandler($level, $eol);
        if ($level == 2) {
            $this->root->userAgent->render($handler);
        }
        $this->root->host->render($handler);
        $this->root->cleanParam->render($handler);
        $this->root->sitemap->render($handler);
        if ($level != 2) {
            $this->root->userAgent->render($handler);
        }
        return $handler->generate();
    }
534368
public function setTemplate($template)
    {
        if (!(is_string($template) || $template instanceof TemplateReferenceInterface)) {
            throw new \InvalidArgumentException('The template should be a string or implement TemplateReferenceInterface');
        }
        $this->template = $template;

        return $this;
    }
1080522
public function set($object = null)
    {
        if (null !== $object && !$object instanceof Language) {
            throw new General\InvalidArgumentTypeException('exception_only_language_objects_are_accepted');
        }

        $this->alLanguage = $object;

        return $this;
    }
217365
public function setTtl(int $ttl = 86400) : CNabuDataObject
    {
        if ($ttl === null) {
            throw new ENabuCoreException(
                    ENabuCoreException::ERROR_NULL_VALUE_NOT_ALLOWED_IN,
                    array("\$ttl")
            );
        }
        $this->setValue('nb_domain_zone_ttl', $ttl);
        
        return $this;
    }
476526
public function setNull($null)
    {
        if (!is_bool($null)) {
            throw new \InvalidArgumentException('The attribute null on the class Attribute has to be boolean (' . gettype($null) . ('object' === gettype($null) ? ' ' . get_class($null) : '') . ' given).');
        }

        $this->null = $null;

        return $this;
    }
49050
public function getHeaders($EOL = Zend_Mime::LINEEND)
    {
        $res = '';
        foreach ($this->getHeadersArray($EOL) as $header) {
            $res .= $header[0] . ': ' . $header[1] . $EOL;
        }

        return $res;
    }
839309
public function setLinkLevel($linkLevel)
    {

        if (($linkLevel > 10)) {
            throw new \InvalidArgumentException('invalid value for $linkLevel when calling GetCharactersCharacterIdPlanetsPlanetIdLink., must be smaller than or equal to 10.');
        }
        if (($linkLevel < 0)) {
            throw new \InvalidArgumentException('invalid value for $linkLevel when calling GetCharactersCharacterIdPlanetsPlanetIdLink., must be bigger than or equal to 0.');
        }

        $this->container['linkLevel'] = $linkLevel;

        return $this;
    }
1339634
public function setToken($token) : self
    {
        if (! (is_string($token) || is_null($token))) {
            throw new InvalidArgumentException(
                sprintf('Invalid $token type: "%s". Must be "string" or "null"', gettype($token))
            );
        }

        $this->token = $token;
        return $this;
    }
696898
public function setLogLevel($logLevel)
    {
        if (!is_string($logLevel) || '' === ($level = strtolower($logLevel)) || !isset($this->levelMap[$level]))
        {
            throw new \InvalidArgumentException(sprintf(
                '%s - Log level must be one of the following values: ["%s"].  %s seen.',
                get_called_class(),
                implode('", "', array_keys($this->levelMap)),
                is_string($logLevel) ? $logLevel : gettype($logLevel)
            ));
        }

        $this->level = $level;
    }
86085
public function setAutocomplete($bool)
	{
		if (!in_array($bool, [TRUE, FALSE, NULL], TRUE)) {
			throw new InvalidArgumentException('valid values are only true/false/null');
		}
		$this->autocomplete = $bool;

		return $this;
	}
1018059
public function setUpgradeLevel($upgradeLevel)
    {

        if (($upgradeLevel > 5)) {
            throw new \InvalidArgumentException('invalid value for $upgradeLevel when calling GetCharactersCharacterIdPlanets200Ok., must be smaller than or equal to 5.');
        }
        if (($upgradeLevel < 0)) {
            throw new \InvalidArgumentException('invalid value for $upgradeLevel when calling GetCharactersCharacterIdPlanets200Ok., must be bigger than or equal to 0.');
        }

        $this->container['upgradeLevel'] = $upgradeLevel;

        return $this;
    }
489694
public function setSacl(Sacl $sacl = null)
    {
        $this->sacl = $sacl;

        return $this->toggleAclPresent((bool) $sacl, Sacl::SDDL_CHAR);
    }
883275
public function setEngine($engine)
    {
        if (empty($engine)) {
            $this->engine = null;
            return $this;
        }

        if (!is_string($engine)) {
            throw new InvalidArgumentException(
                'Engine must be a string (the engine ident)'
            );
        }

        $this->engine = $engine;
        return $this;
    }
110898
public function setDefaultTtl($ttl)
    {
        if (!is_numeric($ttl)) {
            throw new InvalidArgumentException(
                'TTL must be an integer (seconds)'
            );
        }

        $this->defaultTtl = intval($ttl);
        return $this;
    }
1357417
protected function set($url)
    {
        $parts = parse_url($url);
        if (!$parts) {
            throw new \InvalidArgumentException('URL malformed');
        }

        $this->scheme   = isset($parts['scheme']) ? strtolower($parts['scheme']) : '';
        $this->username = $parts['user'] ?? '';
        $this->password = $parts['pass'] ?? '';
        $this->host     = isset($parts['host']) ? strtolower($parts['host']) : '';
        $this->port     = isset($parts['port']) ? intval($parts['port']) : null;
        $this->path     = $parts['path'] ?? '';
        $this->query    = $parts['query'] ?? '';
        $this->fragment = $parts['fragment'] ?? '';
    }
94889
public function setOperator($operator)
    {
        if ($operator) {
            if (!$this->validateOperator($operator)) {
                throw new \InvalidArgumentException(\sprintf('Binding invalid operator "%s" into filter "%s"', $operator, $this->name));
            }
            $this->operator = $operator;
            $this->updateBound();
        }

        return $this;
    }