/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
function __construct($name = null) { parent::__construct(); $this->name = $name; }
/** * Permission constructor. */ public function __construct() { parent::__construct(); }
/** * Config constructor. * @param String $key * @param String $value */ public function __construct($key, $value) { parent::__construct(); $this->keyCode = $key; $this->value = $value; }
function __construct($start = null, $stop = null) { parent::__construct(); $this->start = $start; $this->stop = $stop; }
/** * Meal constructor. */ public function __construct() { parent::__construct(); $this->meals = array(); }