var/cache/dev/doctrine/orm/Proxies/__CG__AppEntityMachine.php line 9

Open in your IDE?
  1. <?php
  2. namespace Proxies\__CG__\App\Entity;
  3. /**
  4.  * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
  5.  */
  6. class Machine extends \App\Entity\Machine implements \Doctrine\ORM\Proxy\Proxy
  7. {
  8.     /**
  9.      * @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
  10.      *      three parameters, being respectively the proxy object to be initialized, the method that triggered the
  11.      *      initialization process and an array of ordered parameters that were passed to that method.
  12.      *
  13.      * @see \Doctrine\Common\Proxy\Proxy::__setInitializer
  14.      */
  15.     public $__initializer__;
  16.     /**
  17.      * @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
  18.      *
  19.      * @see \Doctrine\Common\Proxy\Proxy::__setCloner
  20.      */
  21.     public $__cloner__;
  22.     /**
  23.      * @var boolean flag indicating if this object was already initialized
  24.      *
  25.      * @see \Doctrine\Persistence\Proxy::__isInitialized
  26.      */
  27.     public $__isInitialized__ false;
  28.     /**
  29.      * @var array<string, null> properties to be lazy loaded, indexed by property name
  30.      */
  31.     public static $lazyPropertiesNames = array (
  32. );
  33.     /**
  34.      * @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
  35.      *
  36.      * @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
  37.      */
  38.     public static $lazyPropertiesDefaults = array (
  39. );
  40.     public function __construct(?\Closure $initializer null, ?\Closure $cloner null)
  41.     {
  42.         $this->__initializer__ $initializer;
  43.         $this->__cloner__      $cloner;
  44.     }
  45.     /**
  46.      * 
  47.      * @return array
  48.      */
  49.     public function __sleep()
  50.     {
  51.         if ($this->__isInitialized__) {
  52.             return ['__isInitialized__''' "\0" 'App\\Entity\\Machine' "\0" 'id''' "\0" 'App\\Entity\\Machine' "\0" 'name''' "\0" 'App\\Entity\\Machine' "\0" 'code''' "\0" 'App\\Entity\\Machine' "\0" 'invoiceDescription''' "\0" 'App\\Entity\\Machine' "\0" 'technicalNotes''' "\0" 'App\\Entity\\Machine' "\0" 'parent''' "\0" 'App\\Entity\\Machine' "\0" 'children''' "\0" 'App\\Entity\\Machine' "\0" 'paperSizes''' "\0" 'App\\Entity\\Machine' "\0" 'machinePaperSizeMatrices''' "\0" 'App\\Entity\\Machine' "\0" 'tasks''' "\0" 'App\\Entity\\Machine' "\0" 'waste''' "\0" 'App\\Entity\\Machine' "\0" 'spoilage''' "\0" 'App\\Entity\\Machine' "\0" 'setupTime''' "\0" 'App\\Entity\\Machine' "\0" 'rate''' "\0" 'App\\Entity\\Machine' "\0" 'machineCostMatrices''' "\0" 'App\\Entity\\Machine' "\0" 'machineTimeMatrices''createdAt''updatedAt'];
  53.         }
  54.         return ['__isInitialized__''' "\0" 'App\\Entity\\Machine' "\0" 'id''' "\0" 'App\\Entity\\Machine' "\0" 'name''' "\0" 'App\\Entity\\Machine' "\0" 'code''' "\0" 'App\\Entity\\Machine' "\0" 'invoiceDescription''' "\0" 'App\\Entity\\Machine' "\0" 'technicalNotes''' "\0" 'App\\Entity\\Machine' "\0" 'parent''' "\0" 'App\\Entity\\Machine' "\0" 'children''' "\0" 'App\\Entity\\Machine' "\0" 'paperSizes''' "\0" 'App\\Entity\\Machine' "\0" 'machinePaperSizeMatrices''' "\0" 'App\\Entity\\Machine' "\0" 'tasks''' "\0" 'App\\Entity\\Machine' "\0" 'waste''' "\0" 'App\\Entity\\Machine' "\0" 'spoilage''' "\0" 'App\\Entity\\Machine' "\0" 'setupTime''' "\0" 'App\\Entity\\Machine' "\0" 'rate''' "\0" 'App\\Entity\\Machine' "\0" 'machineCostMatrices''' "\0" 'App\\Entity\\Machine' "\0" 'machineTimeMatrices''createdAt''updatedAt'];
  55.     }
  56.     /**
  57.      * 
  58.      */
  59.     public function __wakeup()
  60.     {
  61.         if ( ! $this->__isInitialized__) {
  62.             $this->__initializer__ = function (Machine $proxy) {
  63.                 $proxy->__setInitializer(null);
  64.                 $proxy->__setCloner(null);
  65.                 $existingProperties get_object_vars($proxy);
  66.                 foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
  67.                     if ( ! array_key_exists($property$existingProperties)) {
  68.                         $proxy->$property $defaultValue;
  69.                     }
  70.                 }
  71.             };
  72.         }
  73.     }
  74.     /**
  75.      * {@inheritDoc}
  76.      */
  77.     public function __clone()
  78.     {
  79.         $this->__cloner__ && $this->__cloner__->__invoke($this'__clone', []);
  80.         parent::__clone();
  81.     }
  82.     /**
  83.      * Forces initialization of the proxy
  84.      */
  85.     public function __load(): void
  86.     {
  87.         $this->__initializer__ && $this->__initializer__->__invoke($this'__load', []);
  88.     }
  89.     /**
  90.      * {@inheritDoc}
  91.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  92.      */
  93.     public function __isInitialized(): bool
  94.     {
  95.         return $this->__isInitialized__;
  96.     }
  97.     /**
  98.      * {@inheritDoc}
  99.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  100.      */
  101.     public function __setInitialized($initialized): void
  102.     {
  103.         $this->__isInitialized__ $initialized;
  104.     }
  105.     /**
  106.      * {@inheritDoc}
  107.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  108.      */
  109.     public function __setInitializer(\Closure $initializer null): void
  110.     {
  111.         $this->__initializer__ $initializer;
  112.     }
  113.     /**
  114.      * {@inheritDoc}
  115.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  116.      */
  117.     public function __getInitializer(): ?\Closure
  118.     {
  119.         return $this->__initializer__;
  120.     }
  121.     /**
  122.      * {@inheritDoc}
  123.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  124.      */
  125.     public function __setCloner(\Closure $cloner null): void
  126.     {
  127.         $this->__cloner__ $cloner;
  128.     }
  129.     /**
  130.      * {@inheritDoc}
  131.      * @internal generated method: use only when explicitly handling proxy specific cloning logic
  132.      */
  133.     public function __getCloner(): ?\Closure
  134.     {
  135.         return $this->__cloner__;
  136.     }
  137.     /**
  138.      * {@inheritDoc}
  139.      * @internal generated method: use only when explicitly handling proxy specific loading logic
  140.      * @deprecated no longer in use - generated code now relies on internal components rather than generated public API
  141.      * @static
  142.      */
  143.     public function __getLazyProperties(): array
  144.     {
  145.         return self::$lazyPropertiesDefaults;
  146.     }
  147.     
  148.     /**
  149.      * {@inheritDoc}
  150.      */
  151.     public function getId(): ?int
  152.     {
  153.         if ($this->__isInitialized__ === false) {
  154.             return (int)  parent::getId();
  155.         }
  156.         $this->__initializer__ && $this->__initializer__->__invoke($this'getId', []);
  157.         return parent::getId();
  158.     }
  159.     /**
  160.      * {@inheritDoc}
  161.      */
  162.     public function getName(): ?string
  163.     {
  164.         $this->__initializer__ && $this->__initializer__->__invoke($this'getName', []);
  165.         return parent::getName();
  166.     }
  167.     /**
  168.      * {@inheritDoc}
  169.      */
  170.     public function setName(string $name): \App\Entity\Machine
  171.     {
  172.         $this->__initializer__ && $this->__initializer__->__invoke($this'setName', [$name]);
  173.         return parent::setName($name);
  174.     }
  175.     /**
  176.      * {@inheritDoc}
  177.      */
  178.     public function getCode(): ?string
  179.     {
  180.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCode', []);
  181.         return parent::getCode();
  182.     }
  183.     /**
  184.      * {@inheritDoc}
  185.      */
  186.     public function setCode(string $code): \App\Entity\Machine
  187.     {
  188.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCode', [$code]);
  189.         return parent::setCode($code);
  190.     }
  191.     /**
  192.      * {@inheritDoc}
  193.      */
  194.     public function getInvoiceDescription(): ?string
  195.     {
  196.         $this->__initializer__ && $this->__initializer__->__invoke($this'getInvoiceDescription', []);
  197.         return parent::getInvoiceDescription();
  198.     }
  199.     /**
  200.      * {@inheritDoc}
  201.      */
  202.     public function setInvoiceDescription(?string $invoiceDescription): \App\Entity\Machine
  203.     {
  204.         $this->__initializer__ && $this->__initializer__->__invoke($this'setInvoiceDescription', [$invoiceDescription]);
  205.         return parent::setInvoiceDescription($invoiceDescription);
  206.     }
  207.     /**
  208.      * {@inheritDoc}
  209.      */
  210.     public function getTechnicalNotes(): ?string
  211.     {
  212.         $this->__initializer__ && $this->__initializer__->__invoke($this'getTechnicalNotes', []);
  213.         return parent::getTechnicalNotes();
  214.     }
  215.     /**
  216.      * {@inheritDoc}
  217.      */
  218.     public function setTechnicalNotes(?string $technicalNotes): \App\Entity\Machine
  219.     {
  220.         $this->__initializer__ && $this->__initializer__->__invoke($this'setTechnicalNotes', [$technicalNotes]);
  221.         return parent::setTechnicalNotes($technicalNotes);
  222.     }
  223.     /**
  224.      * {@inheritDoc}
  225.      */
  226.     public function getParent(): ?\App\Entity\Machine
  227.     {
  228.         $this->__initializer__ && $this->__initializer__->__invoke($this'getParent', []);
  229.         return parent::getParent();
  230.     }
  231.     /**
  232.      * {@inheritDoc}
  233.      */
  234.     public function setParent(?\App\Entity\Machine $parent): \App\Entity\Machine
  235.     {
  236.         $this->__initializer__ && $this->__initializer__->__invoke($this'setParent', [$parent]);
  237.         return parent::setParent($parent);
  238.     }
  239.     /**
  240.      * {@inheritDoc}
  241.      */
  242.     public function getChildren(): \Doctrine\Common\Collections\Collection
  243.     {
  244.         $this->__initializer__ && $this->__initializer__->__invoke($this'getChildren', []);
  245.         return parent::getChildren();
  246.     }
  247.     /**
  248.      * {@inheritDoc}
  249.      */
  250.     public function addChild(\App\Entity\Machine $child): \App\Entity\Machine
  251.     {
  252.         $this->__initializer__ && $this->__initializer__->__invoke($this'addChild', [$child]);
  253.         return parent::addChild($child);
  254.     }
  255.     /**
  256.      * {@inheritDoc}
  257.      */
  258.     public function removeChild(\App\Entity\Machine $child): \App\Entity\Machine
  259.     {
  260.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeChild', [$child]);
  261.         return parent::removeChild($child);
  262.     }
  263.     /**
  264.      * {@inheritDoc}
  265.      */
  266.     public function getPaperSizes(): \Doctrine\Common\Collections\Collection
  267.     {
  268.         $this->__initializer__ && $this->__initializer__->__invoke($this'getPaperSizes', []);
  269.         return parent::getPaperSizes();
  270.     }
  271.     /**
  272.      * {@inheritDoc}
  273.      */
  274.     public function addPaperSize(\App\Entity\PaperSize $paperSize): \App\Entity\Machine
  275.     {
  276.         $this->__initializer__ && $this->__initializer__->__invoke($this'addPaperSize', [$paperSize]);
  277.         return parent::addPaperSize($paperSize);
  278.     }
  279.     /**
  280.      * {@inheritDoc}
  281.      */
  282.     public function removePaperSize(\App\Entity\PaperSize $paperSize): \App\Entity\Machine
  283.     {
  284.         $this->__initializer__ && $this->__initializer__->__invoke($this'removePaperSize', [$paperSize]);
  285.         return parent::removePaperSize($paperSize);
  286.     }
  287.     /**
  288.      * {@inheritDoc}
  289.      */
  290.     public function getMachinePaperSizeMatrices(): \Doctrine\Common\Collections\Collection
  291.     {
  292.         $this->__initializer__ && $this->__initializer__->__invoke($this'getMachinePaperSizeMatrices', []);
  293.         return parent::getMachinePaperSizeMatrices();
  294.     }
  295.     /**
  296.      * {@inheritDoc}
  297.      */
  298.     public function addMachinePaperSizeMatrix(\App\Entity\MachinePaperSizeMatrix $machinePaperSizeMatrix): \App\Entity\Machine
  299.     {
  300.         $this->__initializer__ && $this->__initializer__->__invoke($this'addMachinePaperSizeMatrix', [$machinePaperSizeMatrix]);
  301.         return parent::addMachinePaperSizeMatrix($machinePaperSizeMatrix);
  302.     }
  303.     /**
  304.      * {@inheritDoc}
  305.      */
  306.     public function removeMachinePaperSizeMatrix(\App\Entity\MachinePaperSizeMatrix $machinePaperSizeMatrix): \App\Entity\Machine
  307.     {
  308.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeMachinePaperSizeMatrix', [$machinePaperSizeMatrix]);
  309.         return parent::removeMachinePaperSizeMatrix($machinePaperSizeMatrix);
  310.     }
  311.     /**
  312.      * {@inheritDoc}
  313.      */
  314.     public function getTasks(): \Doctrine\Common\Collections\Collection
  315.     {
  316.         $this->__initializer__ && $this->__initializer__->__invoke($this'getTasks', []);
  317.         return parent::getTasks();
  318.     }
  319.     /**
  320.      * {@inheritDoc}
  321.      */
  322.     public function addTask(\App\Entity\Task $task): \App\Entity\Machine
  323.     {
  324.         $this->__initializer__ && $this->__initializer__->__invoke($this'addTask', [$task]);
  325.         return parent::addTask($task);
  326.     }
  327.     /**
  328.      * {@inheritDoc}
  329.      */
  330.     public function removeTask(\App\Entity\Task $task): \App\Entity\Machine
  331.     {
  332.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeTask', [$task]);
  333.         return parent::removeTask($task);
  334.     }
  335.     /**
  336.      * {@inheritDoc}
  337.      */
  338.     public function getWaste(): ?int
  339.     {
  340.         $this->__initializer__ && $this->__initializer__->__invoke($this'getWaste', []);
  341.         return parent::getWaste();
  342.     }
  343.     /**
  344.      * {@inheritDoc}
  345.      */
  346.     public function setWaste(?int $waste): \App\Entity\Machine
  347.     {
  348.         $this->__initializer__ && $this->__initializer__->__invoke($this'setWaste', [$waste]);
  349.         return parent::setWaste($waste);
  350.     }
  351.     /**
  352.      * {@inheritDoc}
  353.      */
  354.     public function getSpoilage(): ?string
  355.     {
  356.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSpoilage', []);
  357.         return parent::getSpoilage();
  358.     }
  359.     /**
  360.      * {@inheritDoc}
  361.      */
  362.     public function setSpoilage(?string $spoilage): \App\Entity\Machine
  363.     {
  364.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSpoilage', [$spoilage]);
  365.         return parent::setSpoilage($spoilage);
  366.     }
  367.     /**
  368.      * {@inheritDoc}
  369.      */
  370.     public function getSetupTime(): ?int
  371.     {
  372.         $this->__initializer__ && $this->__initializer__->__invoke($this'getSetupTime', []);
  373.         return parent::getSetupTime();
  374.     }
  375.     /**
  376.      * {@inheritDoc}
  377.      */
  378.     public function setSetupTime(?int $setupTime): \App\Entity\Machine
  379.     {
  380.         $this->__initializer__ && $this->__initializer__->__invoke($this'setSetupTime', [$setupTime]);
  381.         return parent::setSetupTime($setupTime);
  382.     }
  383.     /**
  384.      * {@inheritDoc}
  385.      */
  386.     public function getRate(): ?string
  387.     {
  388.         $this->__initializer__ && $this->__initializer__->__invoke($this'getRate', []);
  389.         return parent::getRate();
  390.     }
  391.     /**
  392.      * {@inheritDoc}
  393.      */
  394.     public function setRate(?string $rate): \App\Entity\Machine
  395.     {
  396.         $this->__initializer__ && $this->__initializer__->__invoke($this'setRate', [$rate]);
  397.         return parent::setRate($rate);
  398.     }
  399.     /**
  400.      * {@inheritDoc}
  401.      */
  402.     public function getMachineCostMatrices(): \Doctrine\Common\Collections\Collection
  403.     {
  404.         $this->__initializer__ && $this->__initializer__->__invoke($this'getMachineCostMatrices', []);
  405.         return parent::getMachineCostMatrices();
  406.     }
  407.     /**
  408.      * {@inheritDoc}
  409.      */
  410.     public function addMachineCostMatrix(\App\Entity\MachineCostMatrix $machineCostMatrix): \App\Entity\Machine
  411.     {
  412.         $this->__initializer__ && $this->__initializer__->__invoke($this'addMachineCostMatrix', [$machineCostMatrix]);
  413.         return parent::addMachineCostMatrix($machineCostMatrix);
  414.     }
  415.     /**
  416.      * {@inheritDoc}
  417.      */
  418.     public function removeMachineCostMatrix(\App\Entity\MachineCostMatrix $machineCostMatrix): \App\Entity\Machine
  419.     {
  420.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeMachineCostMatrix', [$machineCostMatrix]);
  421.         return parent::removeMachineCostMatrix($machineCostMatrix);
  422.     }
  423.     /**
  424.      * {@inheritDoc}
  425.      */
  426.     public function getMachineTimeMatrices(): \Doctrine\Common\Collections\Collection
  427.     {
  428.         $this->__initializer__ && $this->__initializer__->__invoke($this'getMachineTimeMatrices', []);
  429.         return parent::getMachineTimeMatrices();
  430.     }
  431.     /**
  432.      * {@inheritDoc}
  433.      */
  434.     public function addMachineTimeMatrix(\App\Entity\MachineTimeMatrix $machineTimeMatrix): \App\Entity\Machine
  435.     {
  436.         $this->__initializer__ && $this->__initializer__->__invoke($this'addMachineTimeMatrix', [$machineTimeMatrix]);
  437.         return parent::addMachineTimeMatrix($machineTimeMatrix);
  438.     }
  439.     /**
  440.      * {@inheritDoc}
  441.      */
  442.     public function removeMachineTimeMatrix(\App\Entity\MachineTimeMatrix $machineTimeMatrix): \App\Entity\Machine
  443.     {
  444.         $this->__initializer__ && $this->__initializer__->__invoke($this'removeMachineTimeMatrix', [$machineTimeMatrix]);
  445.         return parent::removeMachineTimeMatrix($machineTimeMatrix);
  446.     }
  447.     /**
  448.      * {@inheritDoc}
  449.      */
  450.     public function getCalculatorDisplayName(): string
  451.     {
  452.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCalculatorDisplayName', []);
  453.         return parent::getCalculatorDisplayName();
  454.     }
  455.     /**
  456.      * {@inheritDoc}
  457.      */
  458.     public function __toString()
  459.     {
  460.         $this->__initializer__ && $this->__initializer__->__invoke($this'__toString', []);
  461.         return parent::__toString();
  462.     }
  463.     /**
  464.      * {@inheritDoc}
  465.      */
  466.     public function setCreatedAt(\DateTime $createdAt)
  467.     {
  468.         $this->__initializer__ && $this->__initializer__->__invoke($this'setCreatedAt', [$createdAt]);
  469.         return parent::setCreatedAt($createdAt);
  470.     }
  471.     /**
  472.      * {@inheritDoc}
  473.      */
  474.     public function getCreatedAt()
  475.     {
  476.         $this->__initializer__ && $this->__initializer__->__invoke($this'getCreatedAt', []);
  477.         return parent::getCreatedAt();
  478.     }
  479.     /**
  480.      * {@inheritDoc}
  481.      */
  482.     public function setUpdatedAt(\DateTime $updatedAt)
  483.     {
  484.         $this->__initializer__ && $this->__initializer__->__invoke($this'setUpdatedAt', [$updatedAt]);
  485.         return parent::setUpdatedAt($updatedAt);
  486.     }
  487.     /**
  488.      * {@inheritDoc}
  489.      */
  490.     public function getUpdatedAt()
  491.     {
  492.         $this->__initializer__ && $this->__initializer__->__invoke($this'getUpdatedAt', []);
  493.         return parent::getUpdatedAt();
  494.     }
  495. }