Пример #1
0
 public function __construct()
 {
     self::$method = $_SERVER['REQUEST_METHOD'];
 }
Пример #2
0
 /**
  * @return \Core\Http\Request
  */
 public static function getInstance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }