CompanyEmployee.php 869B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /**
  18. * @Column(type="datetime", nullable=true)
  19. */
  20. private $startDate;
  21. public function getSalary() {
  22. return $this->salary;
  23. }
  24. public function setSalary($salary) {
  25. $this->salary = $salary;
  26. }
  27. public function getDepartment() {
  28. return $this->department;
  29. }
  30. public function setDepartment($dep) {
  31. $this->department = $dep;
  32. }
  33. public function getStartDate() {
  34. return $this->startDate;
  35. }
  36. public function setStartDate($date) {
  37. $this->startDate = $date;
  38. }
  39. }