public function addMandatoryClassExtension($extension) { $this->mandatoryExtensions[] = $extension; return $this; }