public function __construct($optionName) { parent::__construct(sprintf('The required option "%s" is missing', $optionName)); }