Bravo3\Orm\Drivers\Filesystem\Io\IoDriverInterface::exists PHP Метод

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

Check if a key exists on the interface
public exists ( string $key ) : boolean
$key string
Результат boolean
    public function exists($key);

Usage Example

Пример #1
0
 /**
  * Get the current value of an index
  *
  * @param string $key
  * @return array
  */
 protected function getJsonValue($key)
 {
     if ($this->io_driver->exists($key)) {
         return json_decode($this->io_driver->read($key), true);
     } else {
         return [];
     }
 }