src/Bundles/Instruments/Option/Entity/Option.php line 16

Open in your IDE?
  1. <?php
  2. namespace Bundles\Instruments\Option\Entity;
  3. use Bundles\Instruments\Option\Repository\OptionRepository;
  4. use Bundles\Portfolios\Entity\Portfolio;
  5. use App\Entity\Counterparty;
  6. use Bundles\Instruments\Base\Entity\Forward;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9. * @ORM\Entity(repositoryClass=OptionRepository::class)
  10. * @ORM\Table(name="options")
  11. * @ORM\Embeddable
  12. */
  13. class Option {
  14. /**
  15. * @ORM\Id
  16. * @ORM\GeneratedValue
  17. * @ORM\Column(type="integer")
  18. */
  19. private $id;
  20. /**
  21. * @ORM\ManyToOne(targetEntity=Portfolio::class)
  22. * @ORM\JoinColumn(nullable=false)
  23. */
  24. private $Portfolio;
  25. /**
  26. * @ORM\ManyToOne(targetEntity=Counterparty::class)
  27. * @ORM\JoinColumn(nullable=true)
  28. */
  29. private $Counterparty;
  30. /**
  31. * @ORM\Column(type="string", length=50)
  32. */
  33. private $strategy;
  34. /**
  35. * @ORM\Column(type="string", length=10)
  36. */
  37. private $buyCurr;
  38. /**
  39. * @ORM\Column(type="integer", length=20)
  40. */
  41. private $amount;
  42. /** kada prasideda pirmas trade
  43. * @ORM\Column(type="string", length=10)
  44. */
  45. private $dateDelivery;
  46. /** kada baigiasi paskutinis trade
  47. * @ORM\Column(type="string", length=10, nullable=true)
  48. */
  49. private $dateExpire;
  50. /**
  51. * @ORM\Column(type="string", length=10)
  52. */
  53. private $expiration;
  54. /**
  55. * @ORM\Column(type="string", length=10)
  56. */
  57. private $period;
  58. /**
  59. * @ORM\Column(type="string", length=256, nullable=true)
  60. */
  61. private $comment;
  62. private $rows;
  63. /**
  64. * @ORM\Column(type="boolean")
  65. */
  66. private $status = true;
  67. /**
  68. * @return mixed
  69. */
  70. public function getId() {
  71. return $this->id;
  72. }
  73. /**
  74. * @param mixed $id
  75. */
  76. public function setId($id): void {
  77. $this->id = $id;
  78. }
  79. /**
  80. * @return mixed
  81. */
  82. public function getPortfolio() {
  83. return $this->Portfolio;
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function getCounterparty() {
  89. return $this->Counterparty;
  90. }
  91. /**
  92. * @param mixed $Counterparty
  93. */
  94. public function setCounterparty($Counterparty): void {
  95. $this->Counterparty = $Counterparty;
  96. }
  97. /**
  98. * @param mixed $Portfolio
  99. */
  100. public function setPortfolio($Portfolio): void {
  101. $this->Portfolio = $Portfolio;
  102. }
  103. /**
  104. * @return mixed
  105. */
  106. public function getStrategy() {
  107. return $this->strategy;
  108. }
  109. /**
  110. * @param mixed $strategy
  111. */
  112. public function setStrategy($strategy): void {
  113. $this->strategy = $strategy;
  114. }
  115. /**
  116. * @return mixed
  117. */
  118. public function getExpiration() {
  119. return $this->expiration;
  120. }
  121. /**
  122. * @param mixed $expiration
  123. */
  124. public function setExpiration($expiration): void {
  125. $this->expiration = $expiration;
  126. }
  127. /**
  128. * @return mixed
  129. */
  130. public function getPeriod() {
  131. return $this->period;
  132. }
  133. /**
  134. * @param mixed $period
  135. */
  136. public function setPeriod($period): void {
  137. $this->period = $period;
  138. }
  139. /**
  140. * @return mixed
  141. */
  142. public function getComment() {
  143. return $this->comment;
  144. }
  145. /**
  146. * @param mixed $comment
  147. */
  148. public function setComment($comment): void {
  149. $this->comment = $comment;
  150. }
  151. /**
  152. * @return array
  153. */
  154. public function getRows(): array {
  155. return $this->rows;
  156. }
  157. /**
  158. * @param array $rows
  159. */
  160. public function setRows(array $rows): void {
  161. $this->rows = $rows;
  162. }
  163. /**
  164. * @return mixed
  165. */
  166. public function getBuyCurr() {
  167. return $this->buyCurr;
  168. }
  169. /**
  170. * @param mixed $buyCurr
  171. */
  172. public function setBuyCurr($buyCurr): void {
  173. $this->buyCurr = $buyCurr;
  174. }
  175. /**
  176. * @return mixed
  177. */
  178. public function getDateDelivery() {
  179. return $this->dateDelivery;
  180. }
  181. /**
  182. * @param mixed $dateDelivery
  183. */
  184. public function setDateDelivery($dateDelivery): void {
  185. $this->dateDelivery = $dateDelivery;
  186. }
  187. /**
  188. * @return mixed
  189. */
  190. public function getAmount() {
  191. return $this->amount;
  192. }
  193. /**
  194. * @param mixed $amount
  195. */
  196. public function setAmount($amount): void {
  197. $this->amount = $amount;
  198. }
  199. /**
  200. * @return bool
  201. */
  202. public function isStatus(): bool {
  203. return $this->status;
  204. }
  205. /**
  206. * @param bool $status
  207. */
  208. public function setStatus(bool $status): void {
  209. $this->status = $status;
  210. }
  211. /**
  212. * @return mixed
  213. */
  214. public function getDateExpire() {
  215. return $this->dateExpire;
  216. }
  217. /**
  218. * @param mixed $dateExpire
  219. */
  220. public function setDateExpire($dateExpire): void {
  221. $this->dateExpire = $dateExpire;
  222. }
  223. }