ProxyDefinition.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. namespace Doctrine\Common\Proxy;
  3. /**
  4. * Definition structure how to create a proxy.
  5. *
  6. * @author Benjamin Eberlei <kontakt@beberlei.de>
  7. *
  8. * @deprecated The Doctrine\Common\Proxy component is deprecated, please use ocramius/proxy-manager instead.
  9. */
  10. class ProxyDefinition
  11. {
  12. /**
  13. * @var string
  14. */
  15. public $proxyClassName;
  16. /**
  17. * @var array
  18. */
  19. public $identifierFields;
  20. /**
  21. * @var \ReflectionProperty[]
  22. */
  23. public $reflectionFields;
  24. /**
  25. * @var callable
  26. */
  27. public $initializer;
  28. /**
  29. * @var callable
  30. */
  31. public $cloner;
  32. /**
  33. * @param string $proxyClassName
  34. * @param array $identifierFields
  35. * @param array $reflectionFields
  36. * @param callable $initializer
  37. * @param callable $cloner
  38. */
  39. public function __construct($proxyClassName, array $identifierFields, array $reflectionFields, $initializer, $cloner)
  40. {
  41. $this->proxyClassName = $proxyClassName;
  42. $this->identifierFields = $identifierFields;
  43. $this->reflectionFields = $reflectionFields;
  44. $this->initializer = $initializer;
  45. $this->cloner = $cloner;
  46. }
  47. }