public function __construct($field, $error_message, \PDO $pdo, $table, $primary_key = 'id') { parent::__construct($field, $error_message); $this->pdo = $pdo; $this->primary_key = $primary_key; $this->table = $table; }
public function __construct($field, $error_message, PDO $pdo, $table, $key = '') { parent::__construct($field, $error_message); $this->pdo = $pdo; $this->table = $table; $this->key = $key; }
public function __construct($field, $error_message, $min, $max) { parent::__construct($field, $error_message); $this->min = $min; $this->max = $max; }
public function __construct($field, $error_message, array $formats) { parent::__construct($field, $error_message); $this->formats = $formats; }
public function __construct($field1, $field2, $error_message) { parent::__construct($field1, $error_message); $this->field2 = $field2; }
public function __construct($field, array $array, $error_message) { parent::__construct($field, $error_message); $this->array = $array; }