id; } /** * 赋值 id * @param int|null $id id * @return static */ public function setId($id) { $this->id = null === $id ? null : (int)$id; return $this; } /** * randomNumber * @Column(name="randomNumber", type="int", length=11, accuracy=0, nullable=false, default="0", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false) * @var int|null */ protected ?int $randomNumber = null; /** * 获取 randomNumber * * @return int|null */ public function getRandomNumber(): ?int { return $this->randomNumber; } /** * 赋值 randomNumber * @param int|null $randomNumber randomNumber * @return static */ public function setRandomNumber($randomNumber) { $this->randomNumber = null === $randomNumber ? null : (int)$randomNumber; return $this; } }