Returns the long version of the application.
public getLongVersion ( ) : string | ||
return | string | The long application version |
use Symfony\Component\Console\Application; $application = new Application('My Console App', '1.0.0'); $application->getLongVersion(); // Returns "My Console App version 1.0.0" $application = new Application('My Console App', '1.0.0', 'master-abcdefg'); $application->getLongVersion(); // Returns "My Console App version 1.0.0 (master-abcdefg)"In the examples, we create a `Application` instance and pass in a name, version, and optional master version for the application. We then call the `getLongVersion()` method to retrieve a formatted string containing the application name, version, and master version (if available). This method belongs to the `Symfony\Component\Console` package library, which provides a framework for building command-line applications in PHP.
public getLongVersion ( ) : string | ||
return | string | The long application version |