build() : null; foreach ($data as $key => $value) { $property = null === $inflector ? Inflector::camelize($key) : $inflector->camelize($key); $this->$property = $value; } } }