public function getClassVersion($className)
    {
        if (isset($this->classVersions[$className])) {
            return $this->classVersions[$className];
        }

        $class = $this->getReflectionClass($className);

        $versionAnnotation = $this->reader->getClassAnnotation(
            $class,
            'Evispa\ObjectMigration\Annotations\Version'
        );

        if (null === $versionAnnotation) {
            throw new Exception\NotVersionedException($className);
        }

        $version = $versionAnnotation->version;

        $this->classVersions[$className] = $version;

        return $version;
    }
public function getClassVersion($className)
    {
        if (isset($this->classVersions[$className])) {
            return $this->classVersions[$className];
        }

        $class = $this->getReflectionClass($className);

        $versionAnnotation = $this->reader->getClassAnnotation(
            $class,
            'Evispa\ObjectMigration\Annotations\Version'
        );

        if (null === $versionAnnotation) {
            throw new Exception\NotVersionedException($className);
        }

        $version = $versionAnnotation->version;

        $this->classVersions[$className] = $version;

        return $version;
    }
public function getClassVersion ( $ className ) { if ( isset ( $ this -> classVersions [ $ className ] ) ) { return $ this -> classVersions [ $ className ] ; } $ class = $ this -> getReflectionClass ( $ className ) ; $ versionAnnotation = $ this -> reader -> getClassAnnotation ( $ class , 'Evispa\ObjectMigration\Annotations\Version' ) ; if ( null === $ versionAnnotation ) { throw new Exception \ NotVersionedException ( $ className ) ; } $ version = $ versionAnnotation -> version ; $ this -> classVersions [ $ className ] = $ version ; return $ version ; }
Get class version annotation for a class name.

@param string $className Full class name.

@return string

@throws Exception\NotVersionedException If object is not versioned.
Get class version annotation for a class name .