/** * Sets the invalid string representation. * * @param string $version The string representation. */ public function __construct($version) { parent::__construct(sprintf('The version string representation "%s" is invalid.', $version)); $this->version = $version; }
/** * Sets the invalid version number. * * @param mixed $number The invalid version number. */ public function __construct($number) { parent::__construct(sprintf('The version number "%s" is invalid.', $number)); $this->number = $number; }
/** * Sets the invalid identifier. * * @param string $identifier The invalid identifier. */ public function __construct($identifier) { parent::__construct(sprintf('The identifier "%s" is invalid.', $identifier)); $this->identifier = $identifier; }