2010-07-04 14:17:15 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\Company;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Entity
|
|
|
|
*/
|
|
|
|
class CompanyFixContract extends CompanyContract
|
|
|
|
{
|
|
|
|
/**
|
2010-09-28 01:22:52 +04:00
|
|
|
* @column(type="integer")
|
2010-07-04 14:17:15 +04:00
|
|
|
* @var int
|
|
|
|
*/
|
|
|
|
private $fixPrice = 0;
|
|
|
|
|
|
|
|
public function calculatePrice()
|
|
|
|
{
|
|
|
|
return $this->fixPrice;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFixPrice()
|
|
|
|
{
|
|
|
|
return $this->fixPrice;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setFixPrice($fixPrice)
|
|
|
|
{
|
|
|
|
$this->fixPrice = $fixPrice;
|
|
|
|
}
|
2012-08-08 04:31:01 +04:00
|
|
|
|
|
|
|
static public function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata)
|
|
|
|
{
|
|
|
|
$metadata->mapField(array(
|
|
|
|
'type' => 'integer',
|
|
|
|
'name' => 'fixPrice',
|
|
|
|
'fieldName' => 'fixPrice',
|
|
|
|
));
|
|
|
|
}
|
2010-07-04 14:17:15 +04:00
|
|
|
}
|