示例#1
0
 /**
  * @return string|null
  */
 public function getFactionLocale()
 {
     if (isset($this->locale)) {
         return $this->locale->get(sprintf('faction.%s', $this->data['faction']), 'wow');
     }
     return null;
 }
示例#2
0
文件: PvpArea.php 项目: coss/bnetlib
 /**
  * @return string|null
  */
 public function getStatusLocale()
 {
     if (isset($this->locale)) {
         return $this->locale->get(sprintf('pvpareastatus.%s', $this->data['status']), 'wow');
     }
     return null;
 }
示例#3
0
文件: Faction.php 项目: coss/bnetlib
 /**
  * @return string|null
  */
 public function getStandingLocale()
 {
     if (isset($this->locale)) {
         return $this->locale->get(sprintf('standing.%s', $this->data['standing']), 'wow');
     }
     return null;
 }
示例#4
0
文件: Auction.php 项目: coss/bnetlib
 /**
  * @return string|null
  */
 public function getTimeLeftLocale()
 {
     if (isset($this->locale)) {
         return $this->locale->get(sprintf('auction.%s', $this->data['time']), 'wow');
     }
     return null;
 }
示例#5
0
文件: Item.php 项目: coss/bnetlib
 /**
  * @return string|null
  */
 public function getQualityLocale()
 {
     if (isset($this->locale)) {
         return $this->locale->get(sprintf('itemquality.%s', $this->data['quality']), 'wow');
     }
     return null;
 }