resq/src/Entity/ServiceOffering.php

81 lines
1.3 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @ORM\Table(name="service_offering", indexes={
* @ORM\Index(name="service_offering_idx", columns={"code"}),
* })
*/
class ServiceOffering
{
// unique id
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="string", length=80)
* @Assert\NotBlank()
*/
protected $name;
/**
* @ORM\Column(type="string", length=80)
* @Assert\NotBlank()
*/
protected $code;
// service fee
/**
* @ORM\Column(type="decimal", precision=9, scale=2)
*/
protected $fee;
public function getID()
{
return $this->id;
}
public function setName($name)
{
$this->name = $name;
return $this;
}
public function getName()
{
return $this->name;
}
public function setCode($code)
{
$this->code = $code;
return $this;
}
public function getCode()
{
return $this->code;
}
public function setFee($fee)
{
$this->fee = $fee;
return $this;
}
public function getFee()
{
return $this->fee;
}
}