LazyLoadableObject.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. namespace Doctrine\Tests\Common\Proxy;
  20. /**
  21. * Test asset representing a lazy loadable object
  22. *
  23. * @author Marco Pivetta <ocramius@gmail.com>
  24. * @since 2.4
  25. */
  26. class LazyLoadableObject
  27. {
  28. /**
  29. * @var string
  30. */
  31. public $publicIdentifierField;
  32. /**
  33. * @var string
  34. */
  35. protected $protectedIdentifierField;
  36. /**
  37. * @var string
  38. */
  39. public $publicTransientField = 'publicTransientFieldValue';
  40. /**
  41. * @var string
  42. */
  43. protected $protectedTransientField = 'protectedTransientFieldValue';
  44. /**
  45. * @var string
  46. */
  47. public $publicPersistentField = 'publicPersistentFieldValue';
  48. /**
  49. * @var string
  50. */
  51. protected $protectedPersistentField = 'protectedPersistentFieldValue';
  52. /**
  53. * @var string
  54. */
  55. public $publicAssociation = 'publicAssociationValue';
  56. /**
  57. * @var string
  58. */
  59. protected $protectedAssociation = 'protectedAssociationValue';
  60. /**
  61. * @return string
  62. */
  63. public function getProtectedIdentifierField()
  64. {
  65. return $this->protectedIdentifierField;
  66. }
  67. /**
  68. * @return string
  69. */
  70. public function testInitializationTriggeringMethod()
  71. {
  72. return 'testInitializationTriggeringMethod';
  73. }
  74. /**
  75. * @return string
  76. */
  77. public function getProtectedAssociation()
  78. {
  79. return $this->protectedAssociation;
  80. }
  81. /**
  82. * @param \stdClass $param
  83. */
  84. public function publicTypeHintedMethod(\stdClass $param)
  85. {
  86. }
  87. /**
  88. *
  89. */
  90. public function &byRefMethod()
  91. {
  92. }
  93. /**
  94. * @param mixed $thisIsNotByRef
  95. * @param &mixed $thisIsByRef
  96. */
  97. public function byRefParamMethod($thisIsNotByRef, &$thisIsByRef)
  98. {
  99. }
  100. }