public function fill(array $attributes) { foreach ($attributes as $key => $value) { if (property_exists($this, $key)) { $this->{$key} = $value; } } return $this; }