src/Graviton/SchemaBundle/Constraint/VersionServiceConstraint.php
private function getVersionFromObject($object)
    {
        $version = null;

        if ($this->accessor->isReadable($object, self::FIELD_NAME)) {
            $version = $this->accessor->getValue($object, self::FIELD_NAME);
        }
        return $version;
    }
private function getVersionFromObject($object)
    {
        $version = null;

        if ($this->accessor->isReadable($object, self::FIELD_NAME)) {
            $version = $this->accessor->getValue($object, self::FIELD_NAME);
        }
        return $version;
    }
private function getVersionFromObject ( $ object ) { $ version = null ; if ( $ this -> accessor -> isReadable ( $ object , self :: FIELD_NAME ) ) { $ version = $ this -> accessor -> getValue ( $ object , self :: FIELD_NAME ) ; } return $ version ; }
returns the version from a given object

@param object $object object

@return int|null null or the specified version
returns the version from a given object