/** * Get the format for the outpt. * * If the format is not set, get the default format * from the self::DEFAULT_OUTPUT_FORMAT constant. */ public function getFormat() { $format = parent::getFormat(); $this->format = isset($format) ? $format : self::DEFAULT_OUTPUT_FORMAT; return $this->format; }