ManaPHP\Store\AdapterInterface::get PHP Метод

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

Retrieves a value from store with a specified id.
public get ( string $id ) : string | false
$id string
Результат string | false
    public function get($id);

Usage Example

Пример #1
0
 /**
  * Fetch content
  *
  * @param string $key
  *
  * @return mixed
  * @throws \ManaPHP\Store\Exception
  */
 public function get($key)
 {
     $data = $this->adapter->get($this->_prefix . $key);
     if ($data === false) {
         return false;
     } else {
         return $this->serializer->deserialize($data);
     }
 }