Esempio n. 1
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('AbstractClass as Classes', array('refClass' => 'ClassPerClient', 'local' => 'client_id', 'foreign' => 'abstract_class_id'));
     $this->hasMany('ClassPerClient as ClassesPerClient', array('local' => 'id', 'foreign' => 'client_id'));
     $this->hasMany('MedicalRevision as MedicalRevisions', array('local' => 'id', 'foreign' => 'client_id'));
     $this->hasMany('MembershipFee as MembershipFees', array('local' => 'id', 'foreign' => 'client_id'));
 }
Esempio n. 2
0
 public function __construct($name, $surname, $age, $salary, $gender = self::GENDER_MALE)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->salary = $salary;
 }
Esempio n. 3
0
 public function __construct($name, $surname, $age, $gender, $salary, $commision)
 {
     parent::__construct($name, $surname, $age, $gender);
     $this->setSalary($salary);
     $this->setCommision($commision);
 }
Esempio n. 4
0
 public function setUp()
 {
     parent::setUp();
     $this->hasMany('AbstractClass as Classes', array('refClass' => 'ClassPerCoach', 'local' => 'coach_id', 'foreign' => 'abstract_class_id'));
     $this->hasMany('ClassPerCoach as ClassesPerCoach', array('local' => 'id', 'foreign' => 'coach_id'));
 }