vendor/sulu/sulu/src/Sulu/Bundle/ContactBundle/Entity/AccountContact.php line 17

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. /**
  12. * AccountContact.
  13. */
  14. class AccountContact
  15. {
  16. public const RESOURCE_KEY = 'account_contacts';
  17. /**
  18. * @var bool
  19. */
  20. private $main;
  21. /**
  22. * @var int
  23. */
  24. private $id;
  25. /**
  26. * @var ContactInterface
  27. */
  28. private $contact;
  29. /**
  30. * @var AccountInterface
  31. */
  32. private $account;
  33. /**
  34. * @var Position|null
  35. */
  36. private $position;
  37. /**
  38. * Set main.
  39. *
  40. * @param bool $main
  41. *
  42. * @return AccountContact
  43. */
  44. public function setMain($main)
  45. {
  46. $this->main = $main;
  47. return $this;
  48. }
  49. /**
  50. * Get main.
  51. *
  52. * @return bool
  53. */
  54. public function getMain()
  55. {
  56. return $this->main;
  57. }
  58. /**
  59. * Get id.
  60. *
  61. * @return int
  62. */
  63. public function getId()
  64. {
  65. return $this->id;
  66. }
  67. /**
  68. * Set contact.
  69. *
  70. * @return AccountContact
  71. */
  72. public function setContact(ContactInterface $contact)
  73. {
  74. $this->contact = $contact;
  75. return $this;
  76. }
  77. /**
  78. * Get contact.
  79. *
  80. * @return ContactInterface
  81. */
  82. public function getContact()
  83. {
  84. return $this->contact;
  85. }
  86. /**
  87. * Set account.
  88. *
  89. * @return AccountContact
  90. */
  91. public function setAccount(AccountInterface $account)
  92. {
  93. $this->account = $account;
  94. return $this;
  95. }
  96. /**
  97. * Get account.
  98. *
  99. * @return AccountInterface
  100. */
  101. public function getAccount()
  102. {
  103. return $this->account;
  104. }
  105. /**
  106. * Set position.
  107. *
  108. * @return AccountContact
  109. */
  110. public function setPosition(?Position $position = null)
  111. {
  112. $this->position = $position;
  113. return $this;
  114. }
  115. /**
  116. * Get position.
  117. *
  118. * @return Position|null
  119. */
  120. public function getPosition()
  121. {
  122. return $this->position;
  123. }
  124. }