protected function fail_after_init() { if ($this->isInitialized()) { throw new BadMethodCallException('This ' . __CLASS__ . ' object is already initalized, so you can not change any settings.'); } }