src/Entity/AbstractTokenEntity.php
public function setId($id = null)
    {
		if ($id != null){
			$this->isNew = false;
			$this->id = $id;
		}else{
			$this->id = SecureKey::generate();
		}
        return $this;
    }
public function setId($id = null)
    {
		if ($id != null){
			$this->isNew = false;
			$this->id = $id;
		}else{
			$this->id = SecureKey::generate();
		}
        return $this;
    }
Set token ID

@param string $id Token ID

@return self