Compose an identifying name
@param array $ref
@return string
551871
static function name($ref) {
		return implode("_", array_map(function($ck, $cr) {
			return preg_replace("/_$cr\$/", "", $ck);
		}, $ref["foreignColumns"], $ref["referencedColumns"]));
	}
733185
protected function generateKey($reference)/*# : string */
    {
        if (is_array($reference)) {
            $reference = $this->flatReference($reference);
        }
        $md5 = md5(serialize($reference));
        return sprintf("/%s/%s/%s", $md5[0], $md5[1], $md5);
    }
1230534
protected function assembleIdentification() {
		if ($this->username === null) {
			return '';
		}
		
		if ($this->password === null) {
			return $this->username . '@';
		}
		
		return $this->username . ':' . $this->password . '@';
	}
233775
protected function doGetDBRef(array $reference)
    {
        $riakCollection = $this->riakCollection;
        return $this->retry(function() use ($riakCollection, $reference) {
            return $riakCollection->getDBRef($reference);
        });
    }
674516
static function gnameForRef($fname) {
		$refDefs = static::refDefs();
		$gname = $refDefs[$fname][static::GNAME];
		if ($gname === null) {
			throw new \Exception("Invalid fname `$fname` called for gnameForRef");
		}
		return $gname;
	}
1110180
public function compose(): string
    {
        return sprintf('%s_%s',
            $this->appUUID instanceof AppUUID
                ? str_replace('_', '-', $this->appUUID->composeUUID())
                : '',
            $this->indexUUID instanceof IndexUUID
                ? str_replace('_', '-', $this->indexUUID->composeUUID())
                : ''
        );
    }
1372293
protected function generateKey($reference)/*# : string */
    {
        if (is_array($reference)) {
            $reference = $this->flatReference($reference);
        }
        return md5(serialize($reference));
    }
538169
public function getName()
    {
        $ref = new \ReflectionObject($this);
        $name = $ref->getNamespaceName();
        $name = rtrim($name, '\\');

        return str_replace('\\', '_', strtolower($name));
    }
827659
public function getPath(string $ref)
    {
        $properties     = $this->getProperties();
        $optionsPath    = $properties['optionsPath'];

        return array_key_exists($ref, $optionsPath) ? $optionsPath[$ref] : false;
    }
918589
public function name($name)
    {
        $prefix = !is_null($this->associatedEntity) && $this->associatedEntity->isSupportedAttribute($name) ?
            $this->keys['POST_WRAP'] . '[' . $this->associatedEntity->getInputName() . ']' :
            $this->keys['POST_WRAP'];

        // Transforms user[name] to data[user][name];
        if (preg_match('/^(.+?)\[(.+)?/', $name, $matches)) {
            return $prefix . '[' . $matches[1].'][' . $matches[2];
        }

        // Transforms user to data[user]
        return $prefix . '[' . $name . ']';
    }
402289
public function get_name() {
        $identifier = 'cachedef_'.clean_param($this->area, PARAM_STRINGID);
        $component = $this->component;
        if ($component === 'core') {
            $component = 'cache';
        }
        return new lang_string($identifier, $component);
    }
338899
public function create(string $ref, string $sha): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/git/refs', $this->getGitData()->getOwner(),
                                                 $this->getGitData()->getRepo()), Request::METHOD_POST, [
                'ref' => $ref,
                'sha' => $sha
            ]);
    }
954440
protected function guessClassDescription($ref)
    {
        $description = '__class_' . $ref->getName() . '_description__';
        if ($ref->isSubclassOf('yii\db\ActiveRecord')) {
            $className = $ref->getName();
            $tableName = $className::tableName();
            $description = "is the model class for table \"{$tableName}\".";
        }

        return $description;
    }
572307
private function severityName($severity)
    {
        return isset($this->severityMapping[$severity])
            ? $this->severityMapping[$severity]
            : 'Unknown (' . $severity . ')';
    }
1040378
public function getRef()
    {
        if (is_null($this->ref)) {
            $tags = $this->tags;
            sort($tags);
            $this->ref = md5(implode('-', $tags));
        }
        return $this->ref;
    }
1002082
public function normalizeDefinitionName(string $name): string
    {
        $elements = explode('/', $name);

        return $elements[count($elements) - 1];
    }
314930
protected function composeCollectionLogName($collection)
    {
        if (is_array($collection)) {
            list($database, $collection) = $collection;
            return $database . '.' . $collection;
        }
        return $collection;
    }