2010-07-04 14:17:15 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
*/
|
|
|
|
class CompanyFlexUltraContract extends CompanyFlexContract
|
|
|
|
{
|
|
|
|
/**
|
2010-09-28 01:22:52 +04:00
|
|
|
* @column(type="integer")
|
2010-07-04 14:17:15 +04:00
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
private $maxPrice = 0;
|
|
|
|
|
|
|
|
public function calculatePrice()
|
|
|
|
{
|
|
|
|
return max($this->maxPrice, parent::calculatePrice());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getMaxPrice()
|
|
|
|
{
|
|
|
|
return $this->maxPrice;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setMaxPrice($maxPrice)
|
|
|
|
{
|
|
|
|
$this->maxPrice = $maxPrice;
|
|
|
|
}
|
|
|
|
}
|