Beispiel #1
0
 /**
  * Course constructor.
  * @param String $name
  * @param String $description
  * @param String $shortDescription
  */
 public function __construct($name = null, $description = null, $shortDescription = null)
 {
     parent::__construct();
     $this->name = $name;
     $this->description = $description;
     $this->shortDescription = $shortDescription;
 }
Beispiel #2
0
 /**
  * Role constructor.
  * @param String $name
  * @param String $description
  * @param int $weight
  * @param bool $isAdmin
  * @param Permission[] $permissions
  * @param User[] $Users
  */
 public function __construct($name = null, $description = null, $weight = 0, $isAdmin = false, array $permissions = null, array $Users = null)
 {
     parent::__construct();
     $this->name = $name;
     $this->description = $description;
     $this->weight = $weight;
     $this->isAdmin = $isAdmin;
     $this->permissions = $permissions == null ? array() : $permissions;
     $this->Users = $Users == null ? array() : $Users;
 }
Beispiel #3
0
 /**
  * Address constructor.
  * @param String $recipient
  * @param String $address
  * @param String $addressComplement
  * @param String $country
  * @param String $city
  * @param String $lat
  * @param String $lng
  */
 public function __construct($recipient, $address, $addressComplement, $country, $city, $lat, $lng)
 {
     parent::__construct();
     $this->recipient = $recipient;
     $this->address = $address;
     $this->addressComplement = $addressComplement;
     $this->country = $country;
     $this->city = $city;
     $this->lat = $lat;
     $this->lng = $lng;
 }
Beispiel #4
0
 /**
  * User constructor.
  * @param String $firstName
  * @param String $lastName
  * @param String $mail
  * @param String $salt
  * @param String $password
  * @param String $phoneNumber
  * @param Role $role
  * @param Company $company
  * @param bool $optIn
  */
 public function __construct($firstName = null, $lastName = null, $mail = null, $salt = null, $password = null, $phoneNumber = null, Role $role = null, $company = null, $optIn = false)
 {
     parent::__construct();
     $this->firstName = $firstName;
     $this->lastName = $lastName;
     $this->mail = $mail;
     $this->salt = $salt == null ? str_replace('+', '.', base64_encode(mcrypt_create_iv(22, MCRYPT_DEV_URANDOM))) : $salt;
     $this->password = $password;
     $this->phoneNumber = $phoneNumber;
     $this->role = $role;
     $this->company = $company;
     $this->optIn = $optIn;
 }
Beispiel #5
0
 function __construct($name = null)
 {
     parent::__construct();
     $this->name = $name;
 }
Beispiel #6
0
 /**
  * Permission constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }
Beispiel #7
0
 /**
  * Config constructor.
  * @param String $key
  * @param String $value
  */
 public function __construct($key, $value)
 {
     parent::__construct();
     $this->keyCode = $key;
     $this->value = $value;
 }
Beispiel #8
0
 function __construct($start = null, $stop = null)
 {
     parent::__construct();
     $this->start = $start;
     $this->stop = $stop;
 }
Beispiel #9
0
 /**
  * Meal constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->meals = array();
 }