daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     /**
  2.      * @return bool
  3.      */
  4.     public function isBonusCity()
  5.     {
  6.         return $this->cityModel->parent_city_id > 0;
  7.     }
  8.  
  9.     /**
  10.      * @return bool
  11.      */
  12.     public function isSeasonalCity()
  13.     {
  14.         return
  15.             $this->cityModel->category == \BingoCityModel::CATEGORY_SEASONAL &&
  16.             !$this->isBonusCity();
  17.     }
  18.  
  19.     /**
  20.      * @return bool
  21.      */
  22.     public function isMapCity()
  23.     {
  24.         return
  25.             $this->cityModel->type == \BingoCityModel::TYPE_BINGO &&
  26.             $this->cityModel->category == \BingoCityModel::CATEGORY_BINGO &&
  27.             $this->cityModel->map_section_id > 0 &&
  28.             !$this->cityModel->isTournament() &&
  29.             !$this->isBonusCity();
  30.     }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top