public static function createObject($className, array $params = [])
    {
        $result = new $className;
        foreach ($params as $key => $val) {
            $methodName = 'set'.ucfirst($key);
            if (method_exists($result, $methodName)) {
                $result->$methodName($val);
            }
        }
        return $result;
    }