2008-08-31 22:28:22 +04:00
|
|
|
<?php
|
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @DoctrineEntity
|
2009-05-21 12:53:40 +04:00
|
|
|
* @DoctrineTable(name="company_employees")
|
|
|
|
* @DoctrineDiscriminatorValue("employee")
|
|
|
|
* @DoctrineSubClasses({"Doctrine\Tests\Models\Company\CompanyManager"})
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
class CompanyEmployee extends CompanyPerson
|
2008-08-31 22:28:22 +04:00
|
|
|
{
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="integer")
|
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
private $salary;
|
2008-08-31 22:28:22 +04:00
|
|
|
|
2009-02-18 10:59:11 +03:00
|
|
|
/**
|
2009-05-13 19:19:27 +04:00
|
|
|
* @DoctrineColumn(type="string", length=255)
|
2009-02-18 10:59:11 +03:00
|
|
|
*/
|
2009-05-21 12:53:40 +04:00
|
|
|
private $department;
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|