| @@ 11-90 (lines=80) @@ | ||
| 8 | * @Entity |
|
| 9 | * @Table(name="user") |
|
| 10 | */ |
|
| 11 | class User implements CommandDataInterface |
|
| 12 | { |
|
| 13 | /** |
|
| 14 | * @Id |
|
| 15 | * @GeneratedValue |
|
| 16 | * @Column(type="integer") |
|
| 17 | */ |
|
| 18 | private $id; |
|
| 19 | ||
| 20 | /** |
|
| 21 | * @Column(type="string", nullable=true) |
|
| 22 | */ |
|
| 23 | private $lineUserId; |
|
| 24 | ||
| 25 | /** |
|
| 26 | * @Column(type="string", nullable=true) |
|
| 27 | */ |
|
| 28 | private $lineActiveCmd; |
|
| 29 | ||
| 30 | /** |
|
| 31 | * @Column(type="array", nullable=true) |
|
| 32 | */ |
|
| 33 | private $lineCommandData; |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @return int |
|
| 37 | */ |
|
| 38 | public function getId() |
|
| 39 | { |
|
| 40 | return $this->id; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * {@inheritdoc} |
|
| 45 | */ |
|
| 46 | public function getLineUserId() |
|
| 47 | { |
|
| 48 | return $this->lineUserId; |
|
| 49 | } |
|
| 50 | ||
| 51 | /** |
|
| 52 | * {@inheritdoc} |
|
| 53 | */ |
|
| 54 | public function setLineUserId($lineUserId) |
|
| 55 | { |
|
| 56 | $this->lineUserId = $lineUserId; |
|
| 57 | } |
|
| 58 | ||
| 59 | /** |
|
| 60 | * {@inheritdoc} |
|
| 61 | */ |
|
| 62 | public function getLineActiveCmd() |
|
| 63 | { |
|
| 64 | return $this->lineActiveCmd; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * {@inheritdoc} |
|
| 69 | */ |
|
| 70 | public function setLineActiveCmd($lineActiveCmd) |
|
| 71 | { |
|
| 72 | $this->lineActiveCmd = $lineActiveCmd; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * {@inheritdoc} |
|
| 77 | */ |
|
| 78 | public function getLineCommandData() |
|
| 79 | { |
|
| 80 | return $this->lineCommandData; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * {@inheritdoc} |
|
| 85 | */ |
|
| 86 | public function setLineCommandData(array $lineCommandData) |
|
| 87 | { |
|
| 88 | $this->lineCommandData = $lineCommandData; |
|
| 89 | } |
|
| 90 | } |
|
| 91 | ||
| @@ 17-81 (lines=65) @@ | ||
| 14 | /** |
|
| 15 | * @author Ishmael Doss <[email protected]> |
|
| 16 | */ |
|
| 17 | class CommandData implements CommandDataInterface |
|
| 18 | { |
|
| 19 | /** |
|
| 20 | * @var string |
|
| 21 | */ |
|
| 22 | private $lineUserId; |
|
| 23 | ||
| 24 | /** |
|
| 25 | * @var string |
|
| 26 | */ |
|
| 27 | private $lineActiveCmd; |
|
| 28 | ||
| 29 | /** |
|
| 30 | * @var array |
|
| 31 | */ |
|
| 32 | private $lineCommandData = []; |
|
| 33 | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| 36 | */ |
|
| 37 | public function getLineUserId() |
|
| 38 | { |
|
| 39 | return $this->lineUserId; |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * {@inheritdoc} |
|
| 44 | */ |
|
| 45 | public function setLineUserId($lineUserId) |
|
| 46 | { |
|
| 47 | $this->lineUserId = $lineUserId; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * {@inheritdoc} |
|
| 52 | */ |
|
| 53 | public function getLineActiveCmd() |
|
| 54 | { |
|
| 55 | return $this->lineActiveCmd; |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|
| 59 | * {@inheritdoc} |
|
| 60 | */ |
|
| 61 | public function setLineActiveCmd($lineActiveCmd) |
|
| 62 | { |
|
| 63 | $this->lineActiveCmd = $lineActiveCmd; |
|
| 64 | } |
|
| 65 | ||
| 66 | /** |
|
| 67 | * {@inheritdoc} |
|
| 68 | */ |
|
| 69 | public function getLineCommandData() |
|
| 70 | { |
|
| 71 | return $this->lineCommandData; |
|
| 72 | } |
|
| 73 | ||
| 74 | /** |
|
| 75 | * {@inheritdoc} |
|
| 76 | */ |
|
| 77 | public function setLineCommandData(array $lineCommandData) |
|
| 78 | { |
|
| 79 | $this->lineCommandData = $lineCommandData; |
|
| 80 | } |
|
| 81 | } |
|
| 82 | ||