public function setVersion($version)
    {
        if (null !== $version) {
            Assert::string($version, 'The application version must be a string. Got: %s');
            Assert::notEmpty($version, 'The application version must not be empty.');
        }

        $this->version = $version;

        return $this;
    }
public function setVersion($version)
    {
        if (null !== $version) {
            Assert::string($version, 'The application version must be a string. Got: %s');
            Assert::notEmpty($version, 'The application version must not be empty.');
        }

        $this->version = $version;

        return $this;
    }
public function setVersion ( $ version ) { if ( null !== $ version ) { Assert :: string ( $ version , 'The application version must be a string. Got: %s' ) ; Assert :: notEmpty ( $ version , 'The application version must not be empty.' ) ; } $ this -> version = $ version ; return $ this ; }
Sets the version of the application.

@param string $version The application version.

@return static The current instance.
Sets the version of the application .