public function __construct() { if (!isset($this->types)) { $this->types = isset($_SERVER['REQUEST_METHOD']) && 'POST' === strtoupper($_SERVER['REQUEST_METHOD']) ? [INPUT_GET, INPUT_POST] : [INPUT_GET]; } }