<?php

namespace RxConnexionBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use RxConnexionBundle\Entity\Base\BaseEntity;

/**
 * @ORM\Entity(repositoryClass="RxConnexionBundle\Repository\ItemAveCostRepository")
 * @ORM\Table(name="item_ave_cost")
 */

class ItemAveCostEntity extends BaseEntity
{
    /**
     * @ORM\Column(name="initial_cost", type="decimal", precision=12, scale=2)
     */
    protected $initialCost;

    /**
     * @ORM\Column(name="ave_cost", type="decimal", precision=12, scale=2)
     */
    protected $aveCost;

    /**
     * @ORM\ManyToOne(targetEntity="ItemEntity", inversedBy="itemAveCost")
     * @ORM\JoinColumn(name="item_id", referencedColumnName="id")
     */
    protected $item;

    /**
     * @ORM\ManyToOne(targetEntity="RxConnexionBundle\Entity\HealthFacilityEntity", inversedBy="itemAveCost")
     * @ORM\JoinColumn(name="health_facility_id", referencedColumnName="id")
     */
    protected $healthFacility;


    /*--------------------------------------------------------------------------------------------------------*/
    /*					User Defined Setters and Getters													  */
    /*--------------------------------------------------------------------------------------------------------*/


    /*--------------------------------------------------------------------------------------------------------*/
    /*					Setters and Getters																	  */
    /*--------------------------------------------------------------------------------------------------------*/



    /**
     * Set aveCost
     *
     * @param string $aveCost
     *
     * @return ItemAveCostEntity
     */
    public function setAveCost($aveCost)
    {
        $this->aveCost = $aveCost;

        return $this;
    }

    /**
     * Get aveCost
     *
     * @return string
     */
    public function getAveCost()
    {
        return $this->aveCost;
    }

    /**
     * Set item
     *
     * @param \RxConnexionBundle\Entity\ItemEntity $item
     *
     * @return ItemAveCostEntity
     */
    public function setItem(\RxConnexionBundle\Entity\ItemEntity $item = null)
    {
        $this->item = $item;

        return $this;
    }

    /**
     * Get item
     *
     * @return \RxConnexionBundle\Entity\ItemEntity
     */
    public function getItem()
    {
        return $this->item;
    }

    /**
     * Set healthFacility
     *
     * @param \RxConnexionBundle\Entity\HealthFacilityEntity $healthFacility
     *
     * @return ItemAveCostEntity
     */
    public function setHealthFacility(\RxConnexionBundle\Entity\HealthFacilityEntity $healthFacility = null)
    {
        $this->healthFacility = $healthFacility;

        return $this;
    }

    /**
     * Get healthFacility
     *
     * @return \RxConnexionBundle\Entity\HealthFacilityEntity
     */
    public function getHealthFacility()
    {
        return $this->healthFacility;
    }

    /**
     * Set initialCost
     *
     * @param string $initialCost
     *
     * @return ItemAveCostEntity
     */
    public function setInitialCost($initialCost)
    {
        $this->initialCost = $initialCost;

        return $this;
    }

    /**
     * Get initialCost
     *
     * @return string
     */
    public function getInitialCost()
    {
        return $this->initialCost;
    }
}
