src/Diplix/KMGBundle/Entity/Accounting/BillingForCustomer.php line 11

Open in your IDE?
  1. <?php
  2. namespace Diplix\KMGBundle\Entity\Accounting;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity()
  7.  *
  8.  */
  9. class BillingForCustomer extends Billing
  10. {
  11.     /**
  12.      * @ORM\OneToMany(targetEntity="Diplix\KMGBundle\Entity\Accounting\Job", mappedBy="billingForCustomer")
  13.      * @ORM\OrderBy({"orderTime" = "ASC"})
  14.      */
  15.     protected $jobList;
  16.     /////////////////////////////////////////////////////
  17.     public function __construct()
  18.     {
  19.         $this->jobList = new ArrayCollection();
  20.     }
  21.     public function getType()
  22.     {
  23.         return Billing::TYPE_CUSTOMER;
  24.     }
  25.     /**
  26.      * @return ArrayCollection|Job[]
  27.      */
  28.     public function getJobList()
  29.     {
  30.         return $this->jobList;
  31.     }
  32.     /**
  33.      * @param ArrayCollection $jobList
  34.      */
  35.     public function setJobList($jobList)
  36.     {
  37.         $this->jobList $jobList;
  38.     }
  39. }