Skip to content
Snippets Groups Projects
Commit 5378efad authored by henry anand's avatar henry anand
Browse files

fix : change user class attribute to protected

parent b214e748
No related merge requests found
...@@ -9,7 +9,7 @@ class SOAP{ ...@@ -9,7 +9,7 @@ class SOAP{
public function __construct($wsdl){ public function __construct($wsdl){
$this->key = SOAP_KEY; $this->key = SOAP_KEY;
$this->$wsdl = WSDL; $this->wsdl = WSDL;
$this->streamContext = stream_context_create( $this->streamContext = stream_context_create(
array( array(
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
require_once 'SOAP.php'; require_once 'SOAP.php';
class Administrator extends User{ class Administrator extends User{
private string $organization; private string $organization;
private $db;
private $table;
public function __construct(){ public function __construct(){
$this->db = new Database; $this->db = new Database;
......
...@@ -3,8 +3,6 @@ class Reviewer extends User{ ...@@ -3,8 +3,6 @@ class Reviewer extends User{
private string $occupation; private string $occupation;
private int $score; private int $score;
private $db;
public function __construct(){ public function __construct(){
$this->db = new Database; $this->db = new Database;
} }
......
...@@ -6,8 +6,6 @@ class Student extends User { ...@@ -6,8 +6,6 @@ class Student extends User {
private string $street; private string $street;
private string $city; private string $city;
private string $zipcode; private string $zipcode;
private $db;
private $table;
public function __construct(){ public function __construct(){
$this->db = new Database; $this->db = new Database;
......
<?php <?php
class Superadmin extends User{ class Superadmin extends User{
private $db;
public function __construct(){ public function __construct(){
$this->db = new Database; $this->db = new Database;
} }
......
<?php <?php
class User{ class User{
private int $userID; protected int $userID;
private string $name; protected string $name;
private string $role; protected string $role;
private string $email; protected string $email;
private string $password; protected string $password;
private bool $isVerified; protected bool $isVerified;
private string $image; protected string $image;
private $db; protected $db;
private $table; protected $table;
public function __construct(){ public function __construct(){
$this->db = new Database; $this->db = new Database;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment