public function __construct($filename, $wikimate) { $this->wikimate = $wikimate; $this->filename = $filename; $this->info = $this->getInfo(true); if ($this->invalid) { $this->error['file'] = 'Invalid filename - cannot create WikiFile'; } }