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

Get (and generate)
public get ( $key, callable $callback = null, boolean $fresh = false ) : mixed
$key
$callback callable
$fresh boolean
Результат mixed
Пример #1
0
 public function getTemplate()
 {
     return $this->cache->get(__METHOD__, function () {
         $res = $this->cfnClient->getTemplate(['StackName' => $this->getName()]);
         return $res->get('TemplateBody');
     });
 }