Scalr\Model\Entity\Script::fetchVersions PHP Method

fetchVersions() public method

Fetches list of the versions associated with the script (refreshes)
public fetchVersions ( ) : ArrayObject
return ArrayObject Returns the list of ScriptVersion objects
    public function fetchVersions()
    {
        $this->_versions = ScriptVersion::result(ScriptVersion::RESULT_ENTITY_COLLECTION)->find([['scriptId' => $this->id]], null, ['version' => true]);
        return $this->_versions;
    }