public function getVersion()
    {
        /** @var Collection $version */
        $version = $this->getTags()->get('version', new Collection());
        if ($version->count() !== 0) {
            return $version;
        }

        $inheritedElement = $this->getInheritedElement();
        if ($inheritedElement) {
            return $inheritedElement->getVersion();
        }

        return new Collection();
    }
public function getVersion()
    {
        /** @var Collection $version */
        $version = $this->getTags()->get('version', new Collection());
        if ($version->count() !== 0) {
            return $version;
        }

        $inheritedElement = $this->getInheritedElement();
        if ($inheritedElement) {
            return $inheritedElement->getVersion();
        }

        return new Collection();
    }
public function getVersion ( ) { /** @var Collection $version */ $ version = $ this -> getTags ( ) -> get ( 'version' , new Collection ( ) ) ; if ( $ version -> count ( ) !== 0 ) { return $ version ; } $ inheritedElement = $ this -> getInheritedElement ( ) ; if ( $ inheritedElement ) { return $ inheritedElement -> getVersion ( ) ; } return new Collection ( ) ; }
Returns the versions for this element.

@return Collection
Returns the versions for this element .