CompanyEmployee.php 617B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Doctrine\Tests\Models\Company;
  3. /**
  4. * @Entity
  5. * @Table(name="company_employees")
  6. */
  7. class CompanyEmployee extends CompanyPerson
  8. {
  9. /**
  10. * @Column(type="integer")
  11. */
  12. private $salary;
  13. /**
  14. * @Column(type="string", length=255)
  15. */
  16. private $department;
  17. public function getSalary() {
  18. return $this->salary;
  19. }
  20. public function setSalary($salary) {
  21. $this->salary = $salary;
  22. }
  23. public function getDepartment() {
  24. return $this->department;
  25. }
  26. public function setDepartment($dep) {
  27. $this->department = $dep;
  28. }
  29. }