Interface for __set magic method

@param string $key   key
@param mixed  $value value

@return null
974785
public function __setter($key, $value)
    {
        if(isset($this->ignoreData[$key])){

            $this->ignoreData[$key] = $value;

        }else{

            $attrs = $this->getAttrs();

            if (isset($attrs[$key]) && isset($attrs[$key]['type']) ) {
                if (in_array($attrs[$key]['type'], array(self::DATA_TYPE_REFERENCE, self::DATA_TYPE_REFERENCES))) {
                    $value = $this->setRef($key, $value);
                } elseif (in_array($attrs[$key]['type'], array(self::DATA_TYPE_EMBED, self::DATA_TYPE_EMBEDS))) {
                    $value = $this->fillEmbed($key, $value);
                }
            }

            $value = $this->parseValue($key, $value, $this->getAttrs());

            if ( !isset($this->ignoreData[$key]) && ( !isset($this->cleanData[$key]) || $this->cleanData[$key] !== $value )) {
                $this->cleanData[$key] = $value;
                $this->dirtyData[$key] = $value;
            }

        }

    }
477879
public function set($key, $value = null)
    {
        i\type_check($key, ['array', 'string']);

        if (func_num_args() === 1 && is_string($key)) {
            throw new BadMethodCallException(sprintf(
                "Too few arguments to method %s::%s(). If first argument is a string, a second argument is required",
                __CLASS__,
                __FUNCTION__
            ));
        }

        $input = func_num_args() === 1 ? (array)$key : [$key => $value];

        /** @var Event\BeforeSet $event */
        $event = $this->dispatchEvent(new Event\BeforeSet($this, $input));
        $data = $event->getPayload();

        object_set_properties($this, $data, $this instanceof DynamicEntity);

        $this->dispatchEvent(new Event\AfterSet($this, $data));

        return $this;
    }
116275
public function set($key, $value)
    {
        return shm_put_var($this->shm, $this->shm_key($key), $value); //store var
    }
1372540
public function set($key, $value = null)
    {
        if (is_array($key)) {
            $this->global_data = array_merge($this->global_data, $key);
        } else {
            $this->global_data[$key] = $value;
        }

        return $this;
    }
1365503
public function set($key, $value = null)
    {
        if (is_array($key))
        {
            foreach ($key as $name => $value)
            {
                $this->_data[$name] = $value;
            }
        }
        else
        {
            $this->_data[$key] = $value;
        }

        return $this;
    }
507124
public function setData($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $key => $value) {
                if (!is_array($value) && !is_object($value)) {
                    $this->$key = $value;
                }
            }
        } else {
            $this->$key = $value;
        }

        return $this;
    }
568718
public static function set( $key, $value = null )
    {
        Option::set( static::$_options, static::_getKeyTag( $key ), $value );
    }
479022
public function cacheSet($key, $value)
    {
        return $this->cache() ? $this->cache()->set($key, $value) : null;
    }
1284964
function set($key, $value = null)
    {
        if ($key !== $hash = $this->_normalizeKey($key)) {
            $propObj = $key;
            $key = $hash;
            ## store object map
            $this->__mapedPropObjects[$key] = $propObj;
        }


        $properties = &$this->_referDataArrayReference();
        $properties[$key] = $value;

        return $this;
    }
181601
public function set($key, $value = null)
    {
        $key = $this->resolveAlias($key);

        $mutator = 'set' . $this->toCamelCase($key) . 'Value';

        if (is_callable([$this, $mutator])) {
            $this->$mutator($value);
        } else {
            $this->data[$key] = $value;
        }

        return $this;
    }
522903
function set($key, $value) {
        if(!$this->enabled) {
            return $this;
        }
        
        parent::set($key, $value);
        return $this;
    }
616549
protected function setJavascriptData($key, $value = null)
    {
        if (is_array($key)) {
            JavaScriptFacade::put($key);
        } else {
            JavaScriptFacade::put([$key => $value]);
        }
    }
201804
public function setAttribute($key, $value)
    {
        // We will check for the presence of a mutator for the set operation
        // which simply lets the developers tweak the attribute as it is set on
        // the model, such as "json_encoding" an listing of data for storage.
        if ($this->hasSetMutator($key)) {
            $method = 'set'.studly_case($key).'Attribute';
            return $this->{$method}($value);
        }

        $this->attributes[$key] = $value;
    }
1355718
public function set($key, $value)
    {
        $setting = SettingModel::create(
            [
                'key' => $key,
                'value' => $value,
            ]
        );

        return $setting ? $value : false;
    }
249651
public function set($key, $value = null)
     {
         if (isset($this->_settings->$key)) {
             $this->_settings->$key = $value;
         }

         return $this->_settings->$key;
     }
119938
public function set($key, $value = null) {
        if (strpos($key, '.') === false) {
            $this->_data[$key] = $value;
        } else {
            $this->_data = Hash::set($this->_data, $key, $value);
        }

        return $this;
    }
300679
public function set($key, $value = null)
    {
        if (isset($value)) {
            return $this->array[$key] = $value;
        }

        return $this->array[] = $key;
    }