/** * Parameterized constructor * * @param String $error_code * @param String $error_message */ public function __construct($error_code, $error_message) { parent::__construct(); $this->error_code = $error_code; $this->error_message = $error_message; }
/** * Constructor * * @param The parameters of the task at hand $task_parameter */ public function __construct($task_parameter, $site_info) { parent::__construct(); $this->task_parameter = $task_parameter; $this->site_info = $site_info; }
/** * Constructor that sets the task name * * @param String $task_name */ public function __construct($task_name) { parent::__construct(); $this->set_task_name($task_name); }