<?php

class Config
{
    private static $config = [
        'base_url'             => 'http://homepage.rs/digitalnight/vip-registracija/',
        'base_path'            => '/home/djole/Documents/web_projects/dn_registration_vip/',
        'twitter_api_key'      => 'jRT1DZjkmsiv0m4BlAAblukOE',
        'twitter_api_secret'   => 'dgsKLs3tPe2qBDdYIajtNXq0PQC3Dcy56tC6nA3aICpOG6dM5x',
        'twitter_callback_url' => 'http://homepage.rs/digitalnight/vip-registracija/',
        'twitter_at'           => '111132341-zumNccSpBPtBTs0RpJVul0JPf7DEdJ548ZfoQavo',
        'twitter_ats'          => 'z3d78BLCCzCeToQhperGQ4MIpHGlaUWeYpwV6Ah14Lo2I',
    ];

    private static $responeErrorCodes = [
        1 => 'User allready exists.',
        2 => 'Problem while saving user.',
        3 => 'All fields are required.',
        4 => '404 Page not found.'
    ];

    public static function get($key) {
        return Config::$config[$key];
    }

    public static function getMsg($code) {
        return Config::$responeErrorCodes[$code];
    }

}