public function __construct($params) { $this->latitude = (double) $params['latitude']; $this->longitude = (double) $params['longitude']; $this->userId = (int) $_SESSION['user_id']; $this->cacheType = (int) $params['type']; $this->cacheId = (int) $params['cache_id']; $userrCollection = UserCollection::Instance(); $this->userArray = $userrCollection->getUserCollection(); $this->process(); }