comparison vendor/doctrine/common/lib/Doctrine/Common/Proxy/ProxyDefinition.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2 /*
3 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
4 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
5 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
6 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
7 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
8 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
9 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
10 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
11 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
12 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
13 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14 *
15 * This software consists of voluntary contributions made by many individuals
16 * and is licensed under the MIT license. For more information, see
17 * <http://www.doctrine-project.org>.
18 */
19
20 namespace Doctrine\Common\Proxy;
21
22 /**
23 * Definition structure how to create a proxy.
24 *
25 * @author Benjamin Eberlei <kontakt@beberlei.de>
26 */
27 class ProxyDefinition
28 {
29 /**
30 * @var string
31 */
32 public $proxyClassName;
33
34 /**
35 * @var array
36 */
37 public $identifierFields;
38
39 /**
40 * @var \ReflectionProperty[]
41 */
42 public $reflectionFields;
43
44 /**
45 * @var callable
46 */
47 public $initializer;
48
49 /**
50 * @var callable
51 */
52 public $cloner;
53
54 /**
55 * @param string $proxyClassName
56 * @param array $identifierFields
57 * @param array $reflectionFields
58 * @param callable $initializer
59 * @param callable $cloner
60 */
61 public function __construct($proxyClassName, array $identifierFields, array $reflectionFields, $initializer, $cloner)
62 {
63 $this->proxyClassName = $proxyClassName;
64 $this->identifierFields = $identifierFields;
65 $this->reflectionFields = $reflectionFields;
66 $this->initializer = $initializer;
67 $this->cloner = $cloner;
68 }
69 }
70