<?phpnamespace DcSiteBundle\Entity;use CoreBundle\Entity\Units;/** * ServiceWorkPart */class ServiceWorkPart{    /**     * @var integer     */    private $id;    /**     * @var integer     */    private $count;    /**     * @var ServiceWork     */    private $regulation;    public function __toString()    {        return $this->getPart()->getTitle();    }    /**     * Get id     *     * @return integer     */    public function getId()    {        return $this->id;    }    /**     * Set count     *     * @param integer $count     *     * @return ServiceWorkPart     */    public function setCount($count)    {        $this->count = $count;        return $this;    }    /**     * Get count     *     * @return integer     */    public function getCount()    {        return $this->count;    }    /**     * Set regulation     *     * @param ServiceWork $regulation     *     * @return ServiceWorkPart     */    public function setRegulation(ServiceWork $regulation = null)    {        $this->regulation = $regulation;        return $this;    }    /**     * Get regulation     *     * @return ServiceWork     */    public function getRegulation()    {        return $this->regulation;    }    /**     * @var Part     */    private $part;    /**     * Set part     *     * @param Part $part     *     * @return ServiceWorkPart     */    public function setPart(Part $part = null)    {        $this->part = $part;        return $this;    }    /**     * Get part     *     * @return Part     */    public function getPart()    {        return $this->part;    }    /**     * @var Units     */    private $units;    /**     * Set units     *     * @param Units $units     *     * @return ServiceWorkPart     */    public function setUnits(Units $units = null)    {        $this->units = $units;        return $this;    }    /**     * Get units     *     * @return Units     */    public function getUnits()    {        return $this->units;    }    /**     * @var integer     */    private $process;    /**     * Set process     *     * @param integer $process     *     * @return ServiceWorkPart     */    public function setProcess($process)    {        $this->process = $process;        return $this;    }    /**     * Get process     *     * @return integer     */    public function getProcess()    {        return $this->process;    }    /**     * @var float     */    private $price;    /**     * Set price     *     * @param float $price     *     * @return ServiceWorkPart     */    public function setPrice($price)    {        $this->price = $price;        return $this;    }    /**     * Get price     *     * @return float     */    public function getPrice()    {        return $this->price;    }    /**     * @var boolean     */    private $in_set;    /**     * Set inSet     *     * @param boolean $inSet     *     * @return ServiceWorkPart     */    public function setInSet($inSet)    {        $this->in_set = $inSet;        return $this;    }    /**     * Get inSet     *     * @return boolean     */    public function getInSet()    {        return $this->in_set;    }    /**     * @var float     */    private $discount_price;    /**     * Set discountPrice     *     * @param float $discountPrice     *     * @return ServiceWorkPart     */    public function setDiscountPrice($discountPrice)    {        $this->discount_price = $discountPrice;        return $this;    }    /**     * Get discountPrice     *     * @return float     */    public function getDiscountPrice()    {        return $this->discount_price;    }}