src/Entity/ProjectMetrics.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProjectMetricsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ProjectMetricsRepository::class)
  8.  */
  9. class ProjectMetrics
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      * @Groups({
  16.      *     "project_metric@core"
  17.      * })
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\OneToOne(targetEntity=Projects::class, inversedBy="project_metrics", cascade={"persist", "remove"})
  22.      * @ORM\JoinColumn(nullable=false, onDelete="CASCADE")
  23.      * @Groups({
  24.      *      "project_metric@core"
  25.      *  })
  26.      */
  27.     private $project;
  28.     /**
  29.      * @ORM\Column(type="float", nullable=true)
  30.      * @Groups({
  31.      *      "project_metric@core"
  32.      *  })
  33.      */
  34.     private $spent_hours;
  35.     /**
  36.      * @ORM\Column(type="float", nullable=true)
  37.      * @Groups({
  38.      *      "project_metric@core"
  39.      *  })
  40.      */
  41.     private $spent_costs;
  42.     /**
  43.      * @ORM\Column(type="float", nullable=true)
  44.      * @Groups({
  45.      *      "project_metric@core"
  46.      *  })
  47.      */
  48.     private $expenses;
  49.     /**
  50.      * @ORM\Column(type="float", nullable=true)
  51.      * @Groups({
  52.      *       "project_metric@core"
  53.      * })
  54.      */
  55.     private $half_finished;
  56.     /**
  57.      * @ORM\Column(type="float", nullable=true)
  58.      * @Groups({
  59.      *       "project_metric@core"
  60.      * })
  61.      *   */
  62.     private $backlog;
  63.     /**
  64.      * @ORM\Column(type="float", nullable=true)
  65.      * @Groups({
  66.      *        "project_metric@core"
  67.      * })
  68.      *  */
  69.     private $contribution_margin;
  70.     /**
  71.      * @ORM\Column(type="float", nullable=true)
  72.      * @Groups({
  73.      *         "project_metric@core"
  74.      *  })
  75.      * */
  76.     private $finance_total;
  77.     /**
  78.      * @ORM\Column(type="float", nullable=true)
  79.      * @Groups({
  80.      *     "project_metric@core"
  81.      * })
  82.      */
  83.     private $progress;
  84.     /**
  85.      * @ORM\Column(type="float", nullable=true, options={"comment": "Not paid invoices total"}, options={"comment": "Deprecated column use billing instead"})
  86.      * @Groups({
  87.      *      "project_metric@core"
  88.      *  })
  89.      */
  90.     private $open_invoices;
  91.     /**
  92.      * @ORM\Column(type="float", nullable=true, options={"comment": "Paid invoices total"}, options={"comment": "Deprecated column use billing instead"})
  93.      * @Groups({
  94.      *      "project_metric@core"
  95.      *  })
  96.      */
  97.     private $received_invoices;
  98.     /**
  99.      * @ORM\Column(type="float", nullable=true, options={"comment": "Invoices total"}, options={"comment": "Deprecated column use billing instead"})
  100.      * @Groups({
  101.      *      "project_metric@core"
  102.      *  })
  103.      */
  104.     private $total_invoices;
  105.     /**
  106.      * @ORM\Column(type="float", nullable=true, options={"comment": "Not paid Undertakings total"}, options={"comment": "Deprecated column use billing instead"})
  107.      * @Groups({
  108.      *      "project_metric@core"
  109.      *  })
  110.      */
  111.     private $open_undertakings;
  112.     /**
  113.      * @ORM\Column(type="float", nullable=true, options={"comment": "Paid Undertakings total"}, options={"comment": "Deprecated column use billing instead"})
  114.      * @Groups({
  115.      *      "project_metric@core"
  116.      *  })
  117.      */
  118.     private $received_undertakings;
  119.     /**
  120.      * @ORM\Column(type="float", nullable=true, options={"comment": "Undertakings total"}, options={"comment": "Deprecated column use billing instead"})
  121.      * @Groups({
  122.      *      "project_metric@core"
  123.      *  })
  124.      */
  125.     private $total_undertakings;
  126.     /**
  127.      * @ORM\Column(type="float", nullable=true)
  128.      * @Groups({
  129.      *       "project_metric@core"
  130.      * })
  131.      */
  132.     private $stock_expenses;
  133.     /**
  134.      * @ORM\Column(type="float", nullable=true)
  135.      * @Groups({
  136.      *      "project_metric@core"
  137.      *  })
  138.      */
  139.     private $total_billings;
  140.     /**
  141.      * @ORM\Column(type="float", nullable=true)
  142.      * @Groups({
  143.      *      "project_metric@core"
  144.      *  })
  145.      */
  146.     private $open_billings;
  147.     /**
  148.      * @ORM\Column(type="float", nullable=true)
  149.      * @Groups({
  150.      *     "project_metric@core"
  151.      * })
  152.      */
  153.     private $paid_billings;
  154.     public function getId(): ?int
  155.     {
  156.         return $this->id;
  157.     }
  158.     public function getProject(): ?Projects
  159.     {
  160.         return $this->project;
  161.     }
  162.     public function setProject(Projects $project): self
  163.     {
  164.         $this->project $project;
  165.         return $this;
  166.     }
  167.     public function getSpentHours(): ?float
  168.     {
  169.         return $this->spent_hours;
  170.     }
  171.     public function setSpentHours(?float $spent_hours): self
  172.     {
  173.         $this->spent_hours $spent_hours;
  174.         return $this;
  175.     }
  176.     public function getSpentCosts(): ?float
  177.     {
  178.         return $this->spent_costs;
  179.     }
  180.     public function setSpentCosts(?float $spent_costs): self
  181.     {
  182.         $this->spent_costs $spent_costs;
  183.         return $this;
  184.     }
  185.     public function getExpenses(): ?float
  186.     {
  187.         return $this->expenses;
  188.     }
  189.     public function setExpenses(?float $expenses): self
  190.     {
  191.         $this->expenses $expenses;
  192.         return $this;
  193.     }
  194.     public function getHalfFinished(): ?float
  195.     {
  196.         return $this->half_finished;
  197.     }
  198.     public function setHalfFinished(?float $half_finished): self
  199.     {
  200.         $this->half_finished $half_finished;
  201.         return $this;
  202.     }
  203.     public function getBacklog(): ?float
  204.     {
  205.         return $this->backlog;
  206.     }
  207.     public function setBacklog(?float $backlog): self
  208.     {
  209.         $this->backlog $backlog;
  210.         return $this;
  211.     }
  212.     public function getContributionMargin(): ?float
  213.     {
  214.         return $this->contribution_margin;
  215.     }
  216.     public function setContributionMargin(?float $contribution_margin): self
  217.     {
  218.         $this->contribution_margin $contribution_margin;
  219.         return $this;
  220.     }
  221.     public function getFinanceTotal(): ?float
  222.     {
  223.         return $this->finance_total;
  224.     }
  225.     public function setFinanceTotal(?float $finance_total): self
  226.     {
  227.         $this->finance_total $finance_total;
  228.         return $this;
  229.     }
  230.     public function getProgress(): ?float
  231.     {
  232.         return $this->progress;
  233.     }
  234.     public function setProgress(?float $progress): self
  235.     {
  236.         $this->progress $progress;
  237.         return $this;
  238.     }
  239.     /**
  240.      * TODO @deprecated !
  241.      * @deprecated
  242.      */
  243.     public function getOpenInvoices(): ?float
  244.     {
  245.         return $this->open_invoices;
  246.     }
  247.     /**
  248.      * TODO @deprecated !
  249.      * @deprecated
  250.      */
  251.     public function setOpenInvoices(?float $open_invoices): self
  252.     {
  253.         $this->open_invoices $open_invoices;
  254.         return $this;
  255.     }
  256.     /**
  257.      * TODO @deprecated !
  258.      * @deprecated
  259.      */
  260.     public function getReceivedInvoices(): ?float
  261.     {
  262.         return $this->received_invoices;
  263.     }
  264.     /**
  265.      * TODO @deprecated !
  266.      * @deprecated
  267.      */
  268.     public function setReceivedInvoices(?float $received_invoices): self
  269.     {
  270.         $this->received_invoices $received_invoices;
  271.         return $this;
  272.     }
  273.     /**
  274.      * TODO @deprecated !
  275.      * @deprecated
  276.      */
  277.     public function getTotalInvoices(): ?float
  278.     {
  279.         return $this->total_invoices;
  280.     }
  281.     /**
  282.      * TODO @deprecated !
  283.      * @deprecated
  284.      */
  285.     public function setTotalInvoices(?float $total_invoices): self
  286.     {
  287.         $this->total_invoices $total_invoices;
  288.         return $this;
  289.     }
  290.     /**
  291.      * TODO @deprecated !
  292.      * @deprecated
  293.      */
  294.     public function getOpenUndertakings(): ?float
  295.     {
  296.         return $this->open_undertakings;
  297.     }
  298.     /**
  299.      * TODO @deprecated !
  300.      * @deprecated
  301.      */
  302.     public function setOpenUndertakings(?float $open_undertakings): self
  303.     {
  304.         $this->open_undertakings $open_undertakings;
  305.         return $this;
  306.     }
  307.     /**
  308.      * TODO @deprecated !
  309.      * @deprecated
  310.      */
  311.     public function getReceivedUndertakings(): ?float
  312.     {
  313.         return $this->received_undertakings;
  314.     }
  315.     /**
  316.      * TODO @deprecated !
  317.      * @deprecated
  318.      */
  319.     public function setReceivedUndertakings(?float $received_undertakings): self
  320.     {
  321.         $this->received_undertakings $received_undertakings;
  322.         return $this;
  323.     }
  324.     /**
  325.      * TODO @deprecated !
  326.      * @deprecated
  327.      */
  328.     public function getTotalUndertakings(): ?float
  329.     {
  330.         return $this->total_undertakings;
  331.     }
  332.     /**
  333.      * TODO @deprecated !
  334.      * @deprecated
  335.      */
  336.     public function setTotalUndertakings(?float $total_undertakings): self
  337.     {
  338.         $this->total_undertakings $total_undertakings;
  339.         return $this;
  340.     }
  341.     public function getStockExpenses(): ?float
  342.     {
  343.         return $this->stock_expenses;
  344.     }
  345.     public function setStockExpenses(?float $stock_expenses): self
  346.     {
  347.         $this->stock_expenses $stock_expenses;
  348.         return $this;
  349.     }
  350.     public function getTotalBillings(): ?float
  351.     {
  352.         return $this->total_billings;
  353.     }
  354.     public function setTotalBillings(?float $total_billings): self
  355.     {
  356.         $this->total_billings $total_billings;
  357.         return $this;
  358.     }
  359.     public function getOpenBillings(): ?float
  360.     {
  361.         return $this->open_billings;
  362.     }
  363.     public function setOpenBillings(?float $open_billings): self
  364.     {
  365.         $this->open_billings $open_billings;
  366.         return $this;
  367.     }
  368.     public function getPaidBillings(): ?float
  369.     {
  370.         return $this->paid_billings;
  371.     }
  372.     public function setPaidBillings(?float $paid_billings): self
  373.     {
  374.         $this->paid_billings $paid_billings;
  375.         return $this;
  376.     }
  377. }