Scalr\Model\Entity\Script::fetchVersions PHP Метод

fetchVersions() публичный Метод

Fetches list of the versions associated with the script (refreshes)
public fetchVersions ( ) : ArrayObject
Результат 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;
    }