Pantheon\Terminus\DataStore\DataStoreInterface::get PHP Метод

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

Reads retrieves data from the store
public get ( string $key ) : mixed
$key string A key
Результат mixed The value fpr the given key or null.
    public function get($key);

Usage Example

Пример #1
0
 /**
  * @param DataStoreInterface $data_store
  */
 public function setDataStore(DataStoreInterface $data_store)
 {
     $this->data_store = $data_store;
     $this->data = (object) $data_store->get('session');
 }