Nette\Security\Identity::setId PHP Method

setId() public method

Sets the ID of user.
public setId ( $id ) : self
return self
    public function setId($id)
    {
        $this->id = is_numeric($id) && !is_float($tmp = $id * 1) ? $tmp : $id;
        return $this;
    }