hasProperty("date")){ // $this->date = new MongoDate(); $this->date = new MongoDB\BSON\UTCDateTime( time() * 1000 ); } foreach ($requiredProps as $prop){ if (!$this->hasProperty($prop)){ throw new CoreException("Missing parameter '$prop' while calling AdminAccessModel::__construct()"); } } } public static function getCollectionName(){ return "accessLog"; } } ?>