/** * Constructs a Projects handler * * @param string $method The HTTP request method */ public function __construct($method) { parent::__construct($method); }
/** * Create a Candidates request handler * * @param string $method The HTTP request method of the request * @param array $data The data that was POSTed to the request */ public function __construct($method, $data = null) { $this->AllowedMethods = ['GET', 'POST']; $this->RequestData = $data; parent::__construct($method); }
public function __construct($request, $origin) { parent::__construct($request); //$args is is an array of arguments after the endpoint $this->db = DB::getDBConnection(); }