| Total Complexity | 5 |
| Total Lines | 73 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class User extends CommandData implements CommandDataInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @Id |
||
| 16 | * @GeneratedValue |
||
| 17 | * @Column(type="integer") |
||
| 18 | */ |
||
| 19 | protected $id; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @Column(type="string", nullable=true) |
||
| 23 | */ |
||
| 24 | protected $lineUserId; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @Column(type="string", nullable=true) |
||
| 28 | */ |
||
| 29 | protected $lineActiveCmd; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @Column(type="array", nullable=true) |
||
| 33 | */ |
||
| 34 | protected $lineCommandData; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @Column(type="datetime_immutable", nullable=true) |
||
| 38 | */ |
||
| 39 | protected $lineLastLogin; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @Column(type="json_array", nullable=true) |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $state = []; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | public function getId() |
||
| 51 | { |
||
| 52 | return $this->id; |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return \DateTimeImmutable |
||
| 57 | */ |
||
| 58 | public function getLineLastLogin() |
||
| 59 | { |
||
| 60 | return $this->lineLastLogin; |
||
| 61 | } |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param \DateTimeImmutable $lineLastLogin |
||
| 65 | */ |
||
| 66 | public function setLineLastLogin(\DateTimeImmutable $lineLastLogin = null) |
||
| 67 | { |
||
| 68 | $this->lineLastLogin = $lineLastLogin; |
||
| 69 | } |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @return array |
||
| 73 | */ |
||
| 74 | public function getState() |
||
| 77 | } |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @param array $state |
||
| 81 | */ |
||
| 82 | public function setState(array $state) |
||
| 87 |