vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/ContactAddress.php line 19

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of Sulu.
  4. *
  5. * (c) Sulu GmbH
  6. *
  7. * This source file is subject to the MIT license that is bundled
  8. * with this source code in the file LICENSE.
  9. */
  10. namespace Sulu\Bundle\ContactBundle\Entity;
  11. use JMS\Serializer\Annotation\Exclude;
  12. /**
  13. * ContactAddress.
  14. */
  15. class ContactAddress
  16. {
  17. /**
  18. * @var bool
  19. */
  20. private $main;
  21. /**
  22. * @var int
  23. */
  24. private $id;
  25. /**
  26. * @var Address
  27. */
  28. private $address;
  29. /**
  30. * @var ContactInterface
  31. */
  32. #[Exclude]
  33. private $contact;
  34. /**
  35. * Set main.
  36. *
  37. * @param bool $main
  38. *
  39. * @return ContactAddress
  40. */
  41. public function setMain($main)
  42. {
  43. $this->main = $main;
  44. return $this;
  45. }
  46. /**
  47. * Get main.
  48. *
  49. * @return bool
  50. */
  51. public function getMain()
  52. {
  53. return $this->main;
  54. }
  55. /**
  56. * Get id.
  57. *
  58. * @return int
  59. */
  60. public function getId()
  61. {
  62. return $this->id;
  63. }
  64. /**
  65. * Set address.
  66. *
  67. * @return ContactAddress
  68. */
  69. public function setAddress(Address $address)
  70. {
  71. $this->address = $address;
  72. return $this;
  73. }
  74. /**
  75. * Get address.
  76. *
  77. * @return Address
  78. */
  79. public function getAddress()
  80. {
  81. return $this->address;
  82. }
  83. /**
  84. * Set contact.
  85. *
  86. * @return ContactAddress
  87. */
  88. public function setContact(ContactInterface $contact)
  89. {
  90. $this->contact = $contact;
  91. return $this;
  92. }
  93. /**
  94. * Get contact.
  95. *
  96. * @return ContactInterface
  97. */
  98. public function getContact()
  99. {
  100. return $this->contact;
  101. }
  102. }