/** * Dynamically build params. * * @param string $method * @param array $args * * @return $this */ public function __call($method, $args) { $action = substr($method, 0, 3); if ($action === 'set') { $property = snake_case(substr($method, 3)); $this->items[$property] = $args[0]; return $this; } return parent::__call($method, $args); }