src/Sulu/Bundle/MediaBundle/Entity/File.php
public function getFileVersion($version)
    {
        /** @var FileVersion $fileVersion */
        foreach ($this->fileVersions as $fileVersion) {
            if ($fileVersion->getVersion() === $version) {
                return $fileVersion;
            }
        }

        return null;
    }
public function getFileVersion($version)
    {
        /** @var FileVersion $fileVersion */
        foreach ($this->fileVersions as $fileVersion) {
            if ($fileVersion->getVersion() === $version) {
                return $fileVersion;
            }
        }

        return null;
    }
public function getFileVersion ( $ version ) { /** @var FileVersion $fileVersion */ foreach ( $ this -> fileVersions as $ fileVersion ) { if ( $ fileVersion -> getVersion ( ) === $ version ) { return $ fileVersion ; } } return null ; }
Get file version.

@param int $version

@return FileVersion|null
Get file version .