<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Machine extends \App\Entity\Machine implements \Doctrine\ORM\Proxy\Proxy
{
/**
* @var \Closure the callback responsible for loading properties in the proxy object. This callback is called with
* three parameters, being respectively the proxy object to be initialized, the method that triggered the
* initialization process and an array of ordered parameters that were passed to that method.
*
* @see \Doctrine\Common\Proxy\Proxy::__setInitializer
*/
public $__initializer__;
/**
* @var \Closure the callback responsible of loading properties that need to be copied in the cloned object
*
* @see \Doctrine\Common\Proxy\Proxy::__setCloner
*/
public $__cloner__;
/**
* @var boolean flag indicating if this object was already initialized
*
* @see \Doctrine\Persistence\Proxy::__isInitialized
*/
public $__isInitialized__ = false;
/**
* @var array<string, null> properties to be lazy loaded, indexed by property name
*/
public static $lazyPropertiesNames = array (
);
/**
* @var array<string, mixed> default values of properties to be lazy loaded, with keys being the property names
*
* @see \Doctrine\Common\Proxy\Proxy::__getLazyProperties
*/
public static $lazyPropertiesDefaults = array (
);
public function __construct(?\Closure $initializer = null, ?\Closure $cloner = null)
{
$this->__initializer__ = $initializer;
$this->__cloner__ = $cloner;
}
/**
*
* @return array
*/
public function __sleep()
{
if ($this->__isInitialized__) {
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'];
}
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'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Machine $proxy) {
$proxy->__setInitializer(null);
$proxy->__setCloner(null);
$existingProperties = get_object_vars($proxy);
foreach ($proxy::$lazyPropertiesDefaults as $property => $defaultValue) {
if ( ! array_key_exists($property, $existingProperties)) {
$proxy->$property = $defaultValue;
}
}
};
}
}
/**
* {@inheritDoc}
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
parent::__clone();
}
/**
* Forces initialization of the proxy
*/
public function __load(): void
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized(): bool
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized): void
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(\Closure $initializer = null): void
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer(): ?\Closure
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(\Closure $cloner = null): void
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner(): ?\Closure
{
return $this->__cloner__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
* @deprecated no longer in use - generated code now relies on internal components rather than generated public API
* @static
*/
public function __getLazyProperties(): array
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function getId(): ?int
{
if ($this->__isInitialized__ === false) {
return (int) parent::getId();
}
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getId', []);
return parent::getId();
}
/**
* {@inheritDoc}
*/
public function getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function setName(string $name): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
return parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function getCode(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCode', []);
return parent::getCode();
}
/**
* {@inheritDoc}
*/
public function setCode(string $code): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCode', [$code]);
return parent::setCode($code);
}
/**
* {@inheritDoc}
*/
public function getInvoiceDescription(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getInvoiceDescription', []);
return parent::getInvoiceDescription();
}
/**
* {@inheritDoc}
*/
public function setInvoiceDescription(?string $invoiceDescription): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setInvoiceDescription', [$invoiceDescription]);
return parent::setInvoiceDescription($invoiceDescription);
}
/**
* {@inheritDoc}
*/
public function getTechnicalNotes(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTechnicalNotes', []);
return parent::getTechnicalNotes();
}
/**
* {@inheritDoc}
*/
public function setTechnicalNotes(?string $technicalNotes): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTechnicalNotes', [$technicalNotes]);
return parent::setTechnicalNotes($technicalNotes);
}
/**
* {@inheritDoc}
*/
public function getParent(): ?\App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getParent', []);
return parent::getParent();
}
/**
* {@inheritDoc}
*/
public function setParent(?\App\Entity\Machine $parent): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setParent', [$parent]);
return parent::setParent($parent);
}
/**
* {@inheritDoc}
*/
public function getChildren(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getChildren', []);
return parent::getChildren();
}
/**
* {@inheritDoc}
*/
public function addChild(\App\Entity\Machine $child): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addChild', [$child]);
return parent::addChild($child);
}
/**
* {@inheritDoc}
*/
public function removeChild(\App\Entity\Machine $child): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeChild', [$child]);
return parent::removeChild($child);
}
/**
* {@inheritDoc}
*/
public function getPaperSizes(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPaperSizes', []);
return parent::getPaperSizes();
}
/**
* {@inheritDoc}
*/
public function addPaperSize(\App\Entity\PaperSize $paperSize): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addPaperSize', [$paperSize]);
return parent::addPaperSize($paperSize);
}
/**
* {@inheritDoc}
*/
public function removePaperSize(\App\Entity\PaperSize $paperSize): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removePaperSize', [$paperSize]);
return parent::removePaperSize($paperSize);
}
/**
* {@inheritDoc}
*/
public function getMachinePaperSizeMatrices(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMachinePaperSizeMatrices', []);
return parent::getMachinePaperSizeMatrices();
}
/**
* {@inheritDoc}
*/
public function addMachinePaperSizeMatrix(\App\Entity\MachinePaperSizeMatrix $machinePaperSizeMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addMachinePaperSizeMatrix', [$machinePaperSizeMatrix]);
return parent::addMachinePaperSizeMatrix($machinePaperSizeMatrix);
}
/**
* {@inheritDoc}
*/
public function removeMachinePaperSizeMatrix(\App\Entity\MachinePaperSizeMatrix $machinePaperSizeMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeMachinePaperSizeMatrix', [$machinePaperSizeMatrix]);
return parent::removeMachinePaperSizeMatrix($machinePaperSizeMatrix);
}
/**
* {@inheritDoc}
*/
public function getTasks(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTasks', []);
return parent::getTasks();
}
/**
* {@inheritDoc}
*/
public function addTask(\App\Entity\Task $task): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addTask', [$task]);
return parent::addTask($task);
}
/**
* {@inheritDoc}
*/
public function removeTask(\App\Entity\Task $task): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeTask', [$task]);
return parent::removeTask($task);
}
/**
* {@inheritDoc}
*/
public function getWaste(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWaste', []);
return parent::getWaste();
}
/**
* {@inheritDoc}
*/
public function setWaste(?int $waste): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setWaste', [$waste]);
return parent::setWaste($waste);
}
/**
* {@inheritDoc}
*/
public function getSpoilage(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSpoilage', []);
return parent::getSpoilage();
}
/**
* {@inheritDoc}
*/
public function setSpoilage(?string $spoilage): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSpoilage', [$spoilage]);
return parent::setSpoilage($spoilage);
}
/**
* {@inheritDoc}
*/
public function getSetupTime(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSetupTime', []);
return parent::getSetupTime();
}
/**
* {@inheritDoc}
*/
public function setSetupTime(?int $setupTime): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSetupTime', [$setupTime]);
return parent::setSetupTime($setupTime);
}
/**
* {@inheritDoc}
*/
public function getRate(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRate', []);
return parent::getRate();
}
/**
* {@inheritDoc}
*/
public function setRate(?string $rate): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setRate', [$rate]);
return parent::setRate($rate);
}
/**
* {@inheritDoc}
*/
public function getMachineCostMatrices(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMachineCostMatrices', []);
return parent::getMachineCostMatrices();
}
/**
* {@inheritDoc}
*/
public function addMachineCostMatrix(\App\Entity\MachineCostMatrix $machineCostMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addMachineCostMatrix', [$machineCostMatrix]);
return parent::addMachineCostMatrix($machineCostMatrix);
}
/**
* {@inheritDoc}
*/
public function removeMachineCostMatrix(\App\Entity\MachineCostMatrix $machineCostMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeMachineCostMatrix', [$machineCostMatrix]);
return parent::removeMachineCostMatrix($machineCostMatrix);
}
/**
* {@inheritDoc}
*/
public function getMachineTimeMatrices(): \Doctrine\Common\Collections\Collection
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMachineTimeMatrices', []);
return parent::getMachineTimeMatrices();
}
/**
* {@inheritDoc}
*/
public function addMachineTimeMatrix(\App\Entity\MachineTimeMatrix $machineTimeMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'addMachineTimeMatrix', [$machineTimeMatrix]);
return parent::addMachineTimeMatrix($machineTimeMatrix);
}
/**
* {@inheritDoc}
*/
public function removeMachineTimeMatrix(\App\Entity\MachineTimeMatrix $machineTimeMatrix): \App\Entity\Machine
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'removeMachineTimeMatrix', [$machineTimeMatrix]);
return parent::removeMachineTimeMatrix($machineTimeMatrix);
}
/**
* {@inheritDoc}
*/
public function getCalculatorDisplayName(): string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCalculatorDisplayName', []);
return parent::getCalculatorDisplayName();
}
/**
* {@inheritDoc}
*/
public function __toString()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(\DateTime $createdAt)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
return parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setUpdatedAt(\DateTime $updatedAt)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setUpdatedAt', [$updatedAt]);
return parent::setUpdatedAt($updatedAt);
}
/**
* {@inheritDoc}
*/
public function getUpdatedAt()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getUpdatedAt', []);
return parent::getUpdatedAt();
}
}