Ejemplo n.º 1
0
 /**
  * Sets the version of the module file.
  *
  * @param string $version The module file version.
  */
 public function setVersion($version)
 {
     Assert::string($version, 'The module file version must be a string. Got: %s');
     Assert::regex($version, '~^\\d\\.\\d$~', 'The module file version must have the format "<digit>.<digit>". Got: %s</digit>');
     $this->version = $version;
 }