30 lines
479 B
PHP
30 lines
479 B
PHP
<?php
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
/**
|
|
* @Entity
|
|
*/
|
|
class CompanyFixContract extends CompanyContract
|
|
{
|
|
/**
|
|
* @column(type="integer", nullable=true)
|
|
* @var int
|
|
*/
|
|
private $fixPrice = 0;
|
|
|
|
public function calculatePrice()
|
|
{
|
|
return $this->fixPrice;
|
|
}
|
|
|
|
public function getFixPrice()
|
|
{
|
|
return $this->fixPrice;
|
|
}
|
|
|
|
public function setFixPrice($fixPrice)
|
|
{
|
|
$this->fixPrice = $fixPrice;
|
|
}
|
|
} |