/** * @param Tile $tile * @return bool */ public function isBadSign(Tile $tile) { if ($tile instanceof Sign) { $text = ""; foreach ($tile->getText() as $line) { $text .= strtolower(trim($line)); } } }