1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyEmployee.php

38 lines
765 B
PHP
Raw Normal View History

2008-08-31 22:28:22 +04:00
<?php
namespace Doctrine\Tests\Models\Company;
/**
* @DoctrineEntity
* @DoctrineTable(name="company_employees")
* @DoctrineDiscriminatorValue("employee")
* @DoctrineSubClasses({"Doctrine\Tests\Models\Company\CompanyManager"})
*/
class CompanyEmployee extends CompanyPerson
2008-08-31 22:28:22 +04:00
{
/**
* @DoctrineColumn(type="integer")
*/
private $salary;
2008-08-31 22:28:22 +04:00
/**
* @DoctrineColumn(type="string", length=255)
*/
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;
}
}