function __construct($creatorId = null, $title = null, $venue = null, $type = null) { $this->__startDate = "" . (intval(Validator::Now()) + 1 * 24 * 60 * 60); $this->__id = Validator::UniqueKey(14) . "" . TryFetchUserEvent::count(); $this->setCreatorId($creatorId); $this->setTitle($title); $this->setVenue($venue); $this->setType($type); $this->setCreateDate(Validator::Now()); }