Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Company / CompanyFlexUltraContract.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Company;
4
5 /**
6  * @Entity
7  */
8 class CompanyFlexUltraContract extends CompanyFlexContract
9 {
10     /**
11      * @column(type="integer")
12      * @var int
13      */
14     private $maxPrice = 0;
15
16     public function calculatePrice()
17     {
18         return max($this->maxPrice, parent::calculatePrice());
19     }
20
21     public function getMaxPrice()
22     {
23         return $this->maxPrice;
24     }
25
26     public function setMaxPrice($maxPrice)
27     {
28         $this->maxPrice = $maxPrice;
29     }
30 }