123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace Doctrine\Common\Proxy;
- use ReflectionProperty;
- /**
- * Definition structure how to create a proxy.
- */
- class ProxyDefinition
- {
- /** @var string */
- public $proxyClassName;
- /** @var array<string> */
- public $identifierFields;
- /** @var ReflectionProperty[] */
- public $reflectionFields;
- /** @var callable */
- public $initializer;
- /** @var callable */
- public $cloner;
- /**
- * @param string $proxyClassName
- * @param array<string> $identifierFields
- * @param array<string, ReflectionProperty> $reflectionFields
- * @param callable $initializer
- * @param callable $cloner
- */
- public function __construct($proxyClassName, array $identifierFields, array $reflectionFields, $initializer, $cloner)
- {
- $this->proxyClassName = $proxyClassName;
- $this->identifierFields = $identifierFields;
- $this->reflectionFields = $reflectionFields;
- $this->initializer = $initializer;
- $this->cloner = $cloner;
- }
- }
|