/** * Parameterized constructor * * @param String $error_code * @param String $error_message */ public function __construct($error_code, $error_message, $categories) { parent::__construct($error_code, $error_message); $this->categories = $categories; }
/** * Parameterized constructor * * @param String $error_code * @param String $error_message */ public function __construct($error_code, $error_message, $id, $api_Key) { parent::__construct($error_code, $error_message); $this->id = $id; $this->api_Key = $api_Key; }
/** * Parameterized constructor * * @param String $error_code * @param String $error_message * @param Array $incidents An array of incidents with another array of the incident intself, categories, location, and any associated media */ public function __construct($error_code, $error_message, $incidents) { parent::__construct($error_code, $error_message); $this->incidents = $incidents; }