Sets the DiC

@param DiC $dic

@return DiC
347216
public static function setDic(DiC $dic = null)
	{
		// if a custom DiC is passed, use that
		if ($dic)
		{
			static::$dic = $dic;
		}

		// else set one up if not done yet
		elseif ( ! static::$dic)
		{
			// get us a Dependency Container instance
			static::$dic = new DiC;

			// register the DiC on classname so it can be auto-resolved
			static::$dic->registerSingleton('Fuel\\Dependency\\Container', function($container)
			{
				static::$dic;
			});
		}

		// register the dic for manual resolving
		static::$dic->registerSingleton('dic', function($container)
		{
			static::$dic;
		});

		return static::$dic;
	}
1313402
public function setMerchantcode($fuc='')
    {
        if ($this->isEmpty($fuc)) {
            throw new TpvException('Please add Fuc');
        }

        $this->_setParameters['DS_MERCHANT_MERCHANTCODE'] = $fuc;

        return $this;
    }
984343
public function setDivision($division)
    {

        if (!is_null($division) && ($division > 7)) {
            throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be smaller than or equal to 7.');
        }
        if (!is_null($division) && ($division < 1)) {
            throw new \InvalidArgumentException('invalid value for $division when calling GetCorporationsCorporationIdDivisionsWallet., must be bigger than or equal to 1.');
        }

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

        return $this;
    }
1084266
public function setLoc($loc)
    {
        if (is_string($loc)) {
            $loc = new Loc($loc);
        }
        $this->elements[self::ELEMENT_LOC] = $loc;

        return $this;
    }
586624
public function setDir($dir, $contents)
    {
        foreach ($contents as $one => $two) {
            if (isset($dir[$one])) {
                $dir[$one] = $this->setDir($dir[$one], $contents[$one]);
            } else {
                $dir[$one] = $two;
            }
        }

        return $dir;
    }
1078092
public function set_source(string $src){
    $this->source = is_file($src) ? file_get_contents($src) : $src;
    $this->parsed = [];
    return $this;
  }
738121
public function setValue(?string $value) : Setting
    {

        if ($this->data['value'] !== $value) {
            $this->data['value'] = $value;
            $this->setModified('value');
        }

        return $this;
    }
680621
public function moveRightValue($diff)
    {
        $this->right += $diff;
        if (isset($this->nestedSetNode)) {
            $this->nestedSetNode->moveRightValue($diff);
        }
        return $this;
    }
982486
public function setZ($z)
    {

        $this->z = MathUtil::capValue($z, 0, XyzColorInterface::REF_Z);

        return $this;
    }
905226
public function setIndent($indent)
    {
        if (!$this->isNumber($indent)) {
            throw new ConfigException(ConfigException::MSG_INVALID_ARG, [
                                                                          '$indent',
                                                                          'integer'
                                                                      ]
            );
        }
        $this->indent = $indent;

        return $this;
    }
1251882
protected function setData(\stdClass $column)
    {
        $this->setName($column->Field);
        $this->setIsPrimaryKey(($column->Key === 'PRI'));
        $this->setIsKey(!empty($column->Key));
        $this->setType($column->Type);
        $this->setIsNullable(($column->Null === 'YES'));
        $this->setDefault($column->Default);
        $this->setExtra($column->Extra);

        return $this;
    }
663113
protected function Div( $val )
	{
		if  (! $val->getIsNumeric() ) return $this;
		$value1 = $this->ToDecimal( null );
		$value2 = $val->ToDecimal( null );
		return $value1->Div( $value2 );
	}
1191543
public function setDateTime($date, $diff = false) {
        $dateTemp = str_replace('/', '-', $date);
        $formatedDate = date($this->dateTimeFormat, strtotime($dateTemp));
        if ($diff) {
            $this->dateTimeDiff = null;
            $this->dateTimeDiff = new \DateTime($formatedDate);
        } else {
            $this->dateTime = null;
            $this->dateTime = new \DateTime($formatedDate);
        }
        return $this;
    }
1083663
public function setSalt( $value )
	{
		if( (string) $value !== $this->getSalt() )
		{
			$this->values['salt'] = (string) $value;
			$this->setModified();
		}

		return $this;
	}
1367255
public function setTaxes($value)
    {
        /** @var Item $item */
        foreach ($this->getItems() as $item) {
            $item->setTaxes($value);
        }

        return $this;
    }
1176342
public function setCollation($collation)
    {
        if ($collation !== null) {
            $collation = $this->normalizeCollation($collation);
        }
        $this->collation = $collation;

        return $this;
    }
1306147
public function setValue($value)
    {

        if (isset($this->element)) {
            $this->element->setValue($value);
        }

        return $this;
    }