1
0
mirror of synced 2025-01-18 22:41:43 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyFlexUltraContract.php

31 lines
579 B
PHP
Raw Normal View History

<?php
namespace Doctrine\Tests\Models\Company;
/**
* @Entity
2012-07-29 21:46:38 -03:00
* @EntityListeners({"ContractSubscriber","FlexUltraContractSubscriber"})
*/
class CompanyFlexUltraContract extends CompanyFlexContract
{
/**
* @column(type="integer")
* @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;
}
}