<?php
namespace Proxies\__CG__\App\Entity;
/**
* DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR
*/
class Picture extends \App\Entity\Picture 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__', 'target', 'thumbnailDir', 'hasThumbnail', '' . "\0" . 'App\\Entity\\Picture' . "\0" . 'width', '' . "\0" . 'App\\Entity\\Picture' . "\0" . 'height', 'file', 'filename', 'autoResize', 'previousTarget', 'id', 'pages', 'downloads', 'reading', 'name', 'dir', 'source', 'size', 'isEnabled', 'isDeleted', 'lastUpdate', 'createdAt', 'formatSize', 'mimetype', 'validsMimetypes'];
}
return ['__isInitialized__', 'target', 'thumbnailDir', 'hasThumbnail', '' . "\0" . 'App\\Entity\\Picture' . "\0" . 'width', '' . "\0" . 'App\\Entity\\Picture' . "\0" . 'height', 'file', 'filename', 'autoResize', 'previousTarget', 'id', 'pages', 'downloads', 'reading', 'name', 'dir', 'source', 'size', 'isEnabled', 'isDeleted', 'lastUpdate', 'createdAt', 'formatSize', 'mimetype', 'validsMimetypes'];
}
/**
*
*/
public function __wakeup()
{
if ( ! $this->__isInitialized__) {
$this->__initializer__ = function (Picture $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;
}
}
};
}
}
/**
*
*/
public function __clone()
{
$this->__cloner__ && $this->__cloner__->__invoke($this, '__clone', []);
}
/**
* Forces initialization of the proxy
*/
public function __load()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __isInitialized()
{
return $this->__isInitialized__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitialized($initialized)
{
$this->__isInitialized__ = $initialized;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setInitializer(\Closure $initializer = null)
{
$this->__initializer__ = $initializer;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __getInitializer()
{
return $this->__initializer__;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific loading logic
*/
public function __setCloner(\Closure $cloner = null)
{
$this->__cloner__ = $cloner;
}
/**
* {@inheritDoc}
* @internal generated method: use only when explicitly handling proxy specific cloning logic
*/
public function __getCloner()
{
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()
{
return self::$lazyPropertiesDefaults;
}
/**
* {@inheritDoc}
*/
public function setHasThumbnail(?bool $hasThumbnail = true)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setHasThumbnail', [$hasThumbnail]);
return parent::setHasThumbnail($hasThumbnail);
}
/**
* {@inheritDoc}
*/
public function getThumbnailDir(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getThumbnailDir', []);
return parent::getThumbnailDir();
}
/**
* {@inheritDoc}
*/
public function setThumbnailDir(?string $dir)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setThumbnailDir', [$dir]);
return parent::setThumbnailDir($dir);
}
/**
* {@inheritDoc}
*/
public function getThumbnail()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getThumbnail', []);
return parent::getThumbnail();
}
/**
* {@inheritDoc}
*/
public function getWidth(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getWidth', []);
return parent::getWidth();
}
/**
* {@inheritDoc}
*/
public function getHeight(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getHeight', []);
return parent::getHeight();
}
/**
* {@inheritDoc}
*/
public function persistFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'persistFile', []);
return parent::persistFile();
}
/**
* {@inheritDoc}
*/
public function postPersistFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'postPersistFile', []);
return parent::postPersistFile();
}
/**
* {@inheritDoc}
*/
public function deleteFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'deleteFile', []);
return parent::deleteFile();
}
/**
* {@inheritDoc}
*/
public function getHasThumbnail(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getHasThumbnail', []);
return parent::getHasThumbnail();
}
/**
* {@inheritDoc}
*/
public function setTarget($target)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setTarget', [$target]);
return parent::setTarget($target);
}
/**
* {@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 getFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFile', []);
return parent::getFile();
}
/**
* {@inheritDoc}
*/
public function getRootFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getRootFile', []);
return parent::getRootFile();
}
/**
* {@inheritDoc}
*/
public function getPages(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getPages', []);
return parent::getPages();
}
/**
* {@inheritDoc}
*/
public function setPages(?int $pages): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setPages', [$pages]);
return parent::setPages($pages);
}
/**
* {@inheritDoc}
*/
public function getDownloads(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDownloads', []);
return parent::getDownloads();
}
/**
* {@inheritDoc}
*/
public function setDownloads(?int $downloads): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDownloads', [$downloads]);
return parent::setDownloads($downloads);
}
/**
* {@inheritDoc}
*/
public function getReading(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getReading', []);
return parent::getReading();
}
/**
* {@inheritDoc}
*/
public function setReading(?int $reading): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setReading', [$reading]);
return parent::setReading($reading);
}
/**
* {@inheritDoc}
*/
public function getName(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', []);
return parent::getName();
}
/**
* {@inheritDoc}
*/
public function setName(?string $name): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setName', [$name]);
return parent::setName($name);
}
/**
* {@inheritDoc}
*/
public function getDir(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getDir', []);
return parent::getDir();
}
/**
* {@inheritDoc}
*/
public function setDir(?string $dir): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDir', [$dir]);
return parent::setDir($dir);
}
/**
* {@inheritDoc}
*/
public function setAutoResize(?bool $autoResize = true)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setAutoResize', [$autoResize]);
return parent::setAutoResize($autoResize);
}
/**
* {@inheritDoc}
*/
public function getSource(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSource', []);
return parent::getSource();
}
/**
* {@inheritDoc}
*/
public function setSource(?string $source): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSource', [$source]);
return parent::setSource($source);
}
/**
* {@inheritDoc}
*/
public function getIsEnabled(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsEnabled', []);
return parent::getIsEnabled();
}
/**
* {@inheritDoc}
*/
public function setIsEnabled(?bool $isEnabled): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsEnabled', [$isEnabled]);
return parent::setIsEnabled($isEnabled);
}
/**
* {@inheritDoc}
*/
public function getIsDeleted(): ?bool
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getIsDeleted', []);
return parent::getIsDeleted();
}
/**
* {@inheritDoc}
*/
public function setIsDeleted(?bool $isDeleted): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setIsDeleted', [$isDeleted]);
return parent::setIsDeleted($isDeleted);
}
/**
* {@inheritDoc}
*/
public function getLastUpdate(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getLastUpdate', []);
return parent::getLastUpdate();
}
/**
* {@inheritDoc}
*/
public function setLastUpdate(?\DateTimeInterface $lastUpdate): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setLastUpdate', [$lastUpdate]);
return parent::setLastUpdate($lastUpdate);
}
/**
* {@inheritDoc}
*/
public function getCreatedAt(): ?\DateTimeInterface
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedAt', []);
return parent::getCreatedAt();
}
/**
* {@inheritDoc}
*/
public function setCreatedAt(\DateTimeInterface $createdAt): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedAt', [$createdAt]);
return parent::setCreatedAt($createdAt);
}
/**
* {@inheritDoc}
*/
public function setDateOnPersist()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateOnPersist', []);
return parent::setDateOnPersist();
}
/**
* {@inheritDoc}
*/
public function setDateOnUpdate()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setDateOnUpdate', []);
return parent::setDateOnUpdate();
}
/**
* {@inheritDoc}
*/
public function getCreatedBy(): ?\App\Entity\Users
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedBy', []);
return parent::getCreatedBy();
}
/**
* {@inheritDoc}
*/
public function setCreatedBy(?\App\Entity\Users $createdBy): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setCreatedBy', [$createdBy]);
return parent::setCreatedBy($createdBy);
}
/**
* {@inheritDoc}
*/
public function getTarget(): ?\Symfony\Component\HttpFoundation\File\File
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getTarget', []);
return parent::getTarget();
}
/**
* {@inheritDoc}
*/
public function setFilename($filename)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFilename', [$filename]);
return parent::setFilename($filename);
}
/**
* {@inheritDoc}
*/
public function getSize(): ?int
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getSize', []);
return parent::getSize();
}
/**
* {@inheritDoc}
*/
public function setSize(?int $size): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setSize', [$size]);
return parent::setSize($size);
}
/**
* {@inheritDoc}
*/
public function getFormatSize(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getFormatSize', []);
return parent::getFormatSize();
}
/**
* {@inheritDoc}
*/
public function setFormatSize(?string $formatSize): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setFormatSize', [$formatSize]);
return parent::setFormatSize($formatSize);
}
/**
* {@inheritDoc}
*/
public function getMimetype(): ?string
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getMimetype', []);
return parent::getMimetype();
}
/**
* {@inheritDoc}
*/
public function setMimetype(?string $mimetype): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setMimetype', [$mimetype]);
return parent::setMimetype($mimetype);
}
/**
* {@inheritDoc}
*/
public function updateFile()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'updateFile', []);
return parent::updateFile();
}
/**
* {@inheritDoc}
*/
public function isValidMimetype()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'isValidMimetype', []);
return parent::isValidMimetype();
}
/**
* {@inheritDoc}
*/
public function setValidsMimetypes(?array $mimetypes): \App\Entity\OSFile
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'setValidsMimetypes', [$mimetypes]);
return parent::setValidsMimetypes($mimetypes);
}
/**
* {@inheritDoc}
*/
public function getValidsMimetypes(): ?array
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'getValidsMimetypes', []);
return parent::getValidsMimetypes();
}
/**
* {@inheritDoc}
*/
public function __toString()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', []);
return parent::__toString();
}
/**
* {@inheritDoc}
*/
public function serialize()
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'serialize', []);
return parent::serialize();
}
/**
* {@inheritDoc}
*/
public function unserialize($serialized)
{
$this->__initializer__ && $this->__initializer__->__invoke($this, 'unserialize', [$serialized]);
return parent::unserialize($serialized);
}
}