コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * 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;
 }
コード例 #3
0
 /**
  * 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;
 }