public function __construct(Parser $parser, $cacheDir, $stat = true) { parent::__construct($parser); $this->cacheDir = $cacheDir; $this->stat = (bool) $stat; }