public function setAttribute($key, $value)
    {
        foreach (static::$setter_manipulators as $manipulator) {
            $value = $manipulator($this, $key, $value);
        }

        parent::setAttribute($key, $value);
    }
public function setAttribute($key, $value)
    {
        foreach (static::$setter_manipulators as $manipulator) {
            $value = $manipulator($this, $key, $value);
        }

        parent::setAttribute($key, $value);
    }
public function setAttribute ( $ key , $ value ) { foreach ( static :: $ setter_manipulators as $ manipulator ) { $ value = $ manipulator ( $ this , $ key , $ value ) ; } parent :: setAttribute ( $ key , $ value ) ; }
Sets an attribute value after running through the manipulators.

@param $key
@param $value
Sets an attribute value after running through the manipulators .