public function setFormat($format) { if (in_array($format, $this->validFormats)) { $this->config['page']['format'] = $format; } return $this; }
/** * @param string $format * @return AbstractPhantomExporter */ public function setFormat($format) { parent::setFormat($format); $this->extension = '.' . strtolower($this->getFormat()); return $this; }