src/Collection/Habit/AttributeTrait.php
public function update($attributes)
    {
        if (!empty($attributes)) {
            foreach ($attributes as $attribute => $value) {
                $this->set($attribute, $value);
            }
        }

        return $this;
    }
public function update($attributes)
    {
        if (!empty($attributes)) {
            foreach ($attributes as $attribute => $value) {
                $this->set($attribute, $value);
            }
        }

        return $this;
    }
public function update ( $ attributes ) { if ( ! empty ( $ attributes ) ) { foreach ( $ attributes as $ attribute => $ value ) { $ this -> set ( $ attribute , $ value ) ; } } return $ this ; }
Update attributes with from given array

@param array $attributes
@return \Collection\MutableMap
Update attributes with from given array