src/DcSiteBundle/Entity/ServiceWorkPart.php line 10

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity;
  3. use CoreBundle\Entity\Units;
  4. /**
  5.  * ServiceWorkPart
  6.  */
  7. class ServiceWorkPart
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var integer
  15.      */
  16.     private $count;
  17.     /**
  18.      * @var ServiceWork
  19.      */
  20.     private $regulation;
  21.     public function __toString()
  22.     {
  23.         return $this->getPart()->getTitle();
  24.     }
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return integer
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * Set count
  36.      *
  37.      * @param integer $count
  38.      *
  39.      * @return ServiceWorkPart
  40.      */
  41.     public function setCount($count)
  42.     {
  43.         $this->count $count;
  44.         return $this;
  45.     }
  46.     /**
  47.      * Get count
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getCount()
  52.     {
  53.         return $this->count;
  54.     }
  55.     /**
  56.      * Set regulation
  57.      *
  58.      * @param ServiceWork $regulation
  59.      *
  60.      * @return ServiceWorkPart
  61.      */
  62.     public function setRegulation(ServiceWork $regulation null)
  63.     {
  64.         $this->regulation $regulation;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get regulation
  69.      *
  70.      * @return ServiceWork
  71.      */
  72.     public function getRegulation()
  73.     {
  74.         return $this->regulation;
  75.     }
  76.     /**
  77.      * @var Part
  78.      */
  79.     private $part;
  80.     /**
  81.      * Set part
  82.      *
  83.      * @param Part $part
  84.      *
  85.      * @return ServiceWorkPart
  86.      */
  87.     public function setPart(Part $part null)
  88.     {
  89.         $this->part $part;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get part
  94.      *
  95.      * @return Part
  96.      */
  97.     public function getPart()
  98.     {
  99.         return $this->part;
  100.     }
  101.     /**
  102.      * @var Units
  103.      */
  104.     private $units;
  105.     /**
  106.      * Set units
  107.      *
  108.      * @param Units $units
  109.      *
  110.      * @return ServiceWorkPart
  111.      */
  112.     public function setUnits(Units $units null)
  113.     {
  114.         $this->units $units;
  115.         return $this;
  116.     }
  117.     /**
  118.      * Get units
  119.      *
  120.      * @return Units
  121.      */
  122.     public function getUnits()
  123.     {
  124.         return $this->units;
  125.     }
  126.     /**
  127.      * @var integer
  128.      */
  129.     private $process;
  130.     /**
  131.      * Set process
  132.      *
  133.      * @param integer $process
  134.      *
  135.      * @return ServiceWorkPart
  136.      */
  137.     public function setProcess($process)
  138.     {
  139.         $this->process $process;
  140.         return $this;
  141.     }
  142.     /**
  143.      * Get process
  144.      *
  145.      * @return integer
  146.      */
  147.     public function getProcess()
  148.     {
  149.         return $this->process;
  150.     }
  151.     /**
  152.      * @var float
  153.      */
  154.     private $price;
  155.     /**
  156.      * Set price
  157.      *
  158.      * @param float $price
  159.      *
  160.      * @return ServiceWorkPart
  161.      */
  162.     public function setPrice($price)
  163.     {
  164.         $this->price $price;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get price
  169.      *
  170.      * @return float
  171.      */
  172.     public function getPrice()
  173.     {
  174.         return $this->price;
  175.     }
  176.     /**
  177.      * @var boolean
  178.      */
  179.     private $in_set;
  180.     /**
  181.      * Set inSet
  182.      *
  183.      * @param boolean $inSet
  184.      *
  185.      * @return ServiceWorkPart
  186.      */
  187.     public function setInSet($inSet)
  188.     {
  189.         $this->in_set $inSet;
  190.         return $this;
  191.     }
  192.     /**
  193.      * Get inSet
  194.      *
  195.      * @return boolean
  196.      */
  197.     public function getInSet()
  198.     {
  199.         return $this->in_set;
  200.     }
  201.     /**
  202.      * @var float
  203.      */
  204.     private $discount_price;
  205.     /**
  206.      * Set discountPrice
  207.      *
  208.      * @param float $discountPrice
  209.      *
  210.      * @return ServiceWorkPart
  211.      */
  212.     public function setDiscountPrice($discountPrice)
  213.     {
  214.         $this->discount_price $discountPrice;
  215.         return $this;
  216.     }
  217.     /**
  218.      * Get discountPrice
  219.      *
  220.      * @return float
  221.      */
  222.     public function getDiscountPrice()
  223.     {
  224.         return $this->discount_price;
  225.     }
  226. }