Raml\ApiDefinition::getVersion PHP Method

getVersion() public method

Get the version string of the API
public getVersion ( ) : string
return string
    public function getVersion()
    {
        return $this->version;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @param string $output file to generate
  */
 public function generate($output)
 {
     $html = $this->twig->render('index.html.twig', array('title' => $this->specification->getTitle(), 'base_url' => $this->specification->getBaseUrl(), 'security' => $this->specification->getSecuritySchemes(), 'resources' => $this->specification->getResources(), 'documentation' => $this->specification->getDocumentationList(), 'base_dir_raml' => $this->base_dir_raml, 'version' => $this->specification->getVersion()));
     file_put_contents($output, $html);
 }
All Usage Examples Of Raml\ApiDefinition::getVersion