izzum\examples\inheritance\SuperHero::printMyAwesomeness PHP Method

printMyAwesomeness() private method

private printMyAwesomeness ( $as_superhero = true )
    private function printMyAwesomeness($as_superhero = true)
    {
        $name = $as_superhero ? $this->alias : $this->name;
        $output = $name . " says: ";
        if (count($this->statistics) == 0) {
            $output .= "... nothing done yet.";
        }
        foreach ($this->statistics as $key => $value) {
            $output .= "I was {$key} for {$value} times. ";
        }
        $output .= PHP_EOL;
        echo $output;
    }