| 1 | <?php |
||
| 7 | class Word |
||
| 8 | { |
||
| 9 | const DIR_VERTICAL = 'vertical'; |
||
| 10 | const DIR_HORIZONTAL = 'horizontal'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | * @JMS\Type("string") |
||
| 15 | */ |
||
| 16 | protected $text; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int |
||
| 20 | * @JMS\Type("integer") |
||
| 21 | */ |
||
| 22 | protected $count; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | * @JMS\Type("string") |
||
| 27 | */ |
||
| 28 | protected $orientation = self::DIR_HORIZONTAL; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | * @JMS\Type("string") |
||
| 33 | */ |
||
| 34 | protected $color = '000000'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var int |
||
| 38 | * @JMS\Type("integer") |
||
| 39 | */ |
||
| 40 | protected $position; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @var WordsList |
||
| 44 | * @JMS\Type("SixtyNine\Cloud\Model\WordsList") |
||
| 45 | */ |
||
| 46 | protected $list; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param \SixtyNine\Cloud\Model\WordsList $list |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | 8 | public function setList($list) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @return \SixtyNine\Cloud\Model\wordsList |
||
| 60 | */ |
||
| 61 | public function getList() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param int $count |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | 7 | public function setCount($count) |
|
| 75 | |||
| 76 | /** |
||
| 77 | * @return int |
||
| 78 | */ |
||
| 79 | 8 | public function getCount() |
|
| 83 | |||
| 84 | /** |
||
| 85 | * @param string $text |
||
| 86 | * @return $this |
||
| 87 | */ |
||
| 88 | 7 | public function setText($text) |
|
| 93 | |||
| 94 | /** |
||
| 95 | * @return string |
||
| 96 | */ |
||
| 97 | 8 | public function getText() |
|
| 101 | |||
| 102 | /** |
||
| 103 | * @param string $color |
||
| 104 | * @return $this |
||
| 105 | */ |
||
| 106 | 7 | public function setColor($color) |
|
| 111 | |||
| 112 | /** |
||
| 113 | * @return string |
||
| 114 | */ |
||
| 115 | 4 | public function getColor() |
|
| 119 | |||
| 120 | /** |
||
| 121 | * @param string $orientation |
||
| 122 | * @return $this |
||
| 123 | */ |
||
| 124 | 7 | public function setOrientation($orientation) |
|
| 129 | |||
| 130 | /** |
||
| 131 | * @return string |
||
| 132 | */ |
||
| 133 | 3 | public function getOrientation() |
|
| 137 | |||
| 138 | /** |
||
| 139 | * @param int $position |
||
| 140 | * @return $this |
||
| 141 | */ |
||
| 142 | 1 | public function setPosition($position) |
|
| 143 | { |
||
| 144 | 1 | $this->position = $position; |
|
| 145 | 1 | return $this; |
|
| 146 | } |
||
| 147 | |||
| 148 | /** |
||
| 149 | * @return int |
||
| 150 | */ |
||
| 151 | 4 | public function getPosition() |
|
| 155 | |||
| 156 | } |
||
| 157 | |||
| 158 |