コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * Constructor that sets the task name
  * 
  * @param String $task_name
  */
 public function __construct($task_name)
 {
     parent::__construct();
     $this->set_task_name($task_name);
 }