set

@param string $name
@param mixed  $value

@return  static
498251
public function set($name, $value)
    {
        if (!$value instanceof Data && !$value instanceof DataSet) {
            $value = new Data($value);
        }

        if ($name !== null) {
            $this->data[$name] = $value;
        } else {
            array_push($this->data, $value);
        }

        return $this;
    }
49265
public function setProperty($name,$value) {
        if(property_exists($this,$name))
            $this->$name = $value;
        return $this;
    }
1279569
public function set($name, $value)
    {
        $configuration = $this->configuration->getParameter('configuration');
        $configuration[$name] = $value;
        $this
            ->configuration
            ->setParameter(
                'configuration',
                $configuration
            );

        return $this;
    }
1111065
function setParameter($name, $value)
    {
        $this->name = $name;
        $this->value = $value;

        return $this;
    }
710722
public function setProperty($name, $value)
    {
        if (is_null($value)) {
            unset($this->_properties[$name]);
        } else {
            $this->_properties[$name] = $value;
        }
        return $this;
    }
610989
public function setDefaultValue($name, $value)
    {
        if (!$this->hasParameter($name)) {
            $this->setParameter($name, $value);
        }

        return $this;
    }
643042
public function set($name, $value)
    {
        $name = $this->str($name);
        if ($name->contains('.')) {
            $keys = $name->trim('.')->explode('.', 2);

            if (!$this->data->keyExists($keys[0])) {
                $this->data[$keys[0]] = new ConfigObject();
            }

            $this->data[$keys[0]]->set($keys[1], $value);

            return $this;
        }

        $this->data->key($name, $value);

        return $this;
    }
1101604
public function _set($name, $value)
    {
        $setMethod = 'set' . ucfirst($name);
        if (method_exists($this, $setMethod)) {
            $this->$setMethod($value);
        } else {
            throw new \InvalidArgumentException(sprintf('Setter does not exist for "%s" property', $name));
        }
        return $this;
    }
185520
public function set($name, $value)
    {
        $name = '_' . (string)$name;
        if (property_exists($this, $name) && (!is_array($this->$name))) {
            $this->$name = $value;
        }
        return $this;
    }
100774
public function setParam($name, $value)
	{
		if (null === $this->params)
		{
			$this->params = $this->loadParams();
		}

		$this->params->set($name, $value);

		return $this;
	}
445176
public function setAll($name, $value)
    {
        foreach ($this->data as $record) {
            $record[$name] = $value;
        }
        return $this;
    }
1248054
public function set_property( $name, $value ) {
		$property = $this->get_property( $name );

		$property->setValue( $value );

		return $property;
	}
1118915
public function set($name, $value)
    {
        $this->filters[$name] = $value;
        $this->syncFilters();
        return $this;
    }
581218
final public function set(string $name, $value)
    {
        $this->container->setParameter($name, static::processValue($value, true));

        return $this;
    }
820216
public function setVariable($name, $value)
    {
        if (is_null($value)) {
            unset($this->variables[$name]);
        }
        else {
            $this->variables[$name] = $value;
        }
        return $this;
    }
905075
public function set($name, $value)
    {
        $this->instance->unlock();
        $result = $this->instance->set($name, $value);
        $this->instance->lock();

        return $result;
    }
378254
public function setAttribute($name, $value)
    {
        if ($this->propertyExists($name)) {
            $this->attributes[$name] = $value;
        } else {
            $this->setDirtyAttribute($name, $value);
        }
        return $this;
    }