1
0
mirror of synced 2024-12-14 23:26:04 +03:00
doctrine2/tests/Doctrine/Tests/Models/Company/CompanyFixContract.php
2013-01-29 12:14:52 -02:00

39 lines
731 B
PHP

<?php
namespace Doctrine\Tests\Models\Company;
/**
* @Entity
*/
class CompanyFixContract extends CompanyContract
{
/**
* @column(type="integer")
* @var int
*/
private $fixPrice = 0;
public function calculatePrice()
{
return $this->fixPrice;
}
public function getFixPrice()
{
return $this->fixPrice;
}
public function setFixPrice($fixPrice)
{
$this->fixPrice = $fixPrice;
}
static public function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata)
{
$metadata->mapField(array(
'type' => 'integer',
'name' => 'fixPrice',
'fieldName' => 'fixPrice',
));
}
}