12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
-
- namespace Doctrine\Tests\Models\Company;
-
- /**
- * @Entity
- * @Table(name="company_employees")
- */
- class CompanyEmployee extends CompanyPerson
- {
- /**
- * @Column(type="integer")
- */
- private $salary;
-
- /**
- * @Column(type="string", length=255)
- */
- private $department;
-
- /**
- * @Column(type="datetime", nullable=true)
- */
- private $startDate;
-
- public function getSalary() {
- return $this->salary;
- }
-
- public function setSalary($salary) {
- $this->salary = $salary;
- }
-
- public function getDepartment() {
- return $this->department;
- }
-
- public function setDepartment($dep) {
- $this->department = $dep;
- }
-
- public function getStartDate() {
- return $this->startDate;
- }
-
- public function setStartDate($date) {
- $this->startDate = $date;
- }
- }
|