コード例 #1
0
ファイル: Room.php プロジェクト: ZiperRom1/awesomeChatRoom
 /**
  * Room string representation
  *
  * @return     string  The Room string representation
  */
 public function __toString() : string
 {
     return parent::__toString() . PHP_EOL . $this->roomBanCollection . PHP_EOL . $this->clients . PHP_EOL . 'pseudonyms => ' . static::prettyArray($this->pseudonyms) . PHP_EOL;
 }
コード例 #2
0
ファイル: User.php プロジェクト: ZiperRom1/awesomeChatRoom
 /**
  * Pretty output the User entity
  *
  * @return     string  The pretty output User entity
  */
 public function __toString() : string
 {
     return parent::__toString() . PHP_EOL . $this->right . PHP_EOL . $this->roomRight;
 }