getRequest()->query->all() as $property => $value) { if (property_exists($this, $property)) { $this->{$property} = $value; } } } }