DirkGroenen\Pinterest\Models\Model::fill PHP Method

fill() private method

Fill the attributes
private fill ( array $attributes ) : void
$attributes array
return void
    private function fill(array $attributes)
    {
        foreach ($attributes as $key => $value) {
            if ($this->isFillable($key)) {
                $this->attributes[$key] = $value;
            }
        }
    }