Пример #1
0
 /**
  * Returns the values associated to the given object.
  *
  * If the object is not present in the storage, an empty array is returned.
  *
  * @param object $object The object.
  *
  * @return array The values associated with the object.
  */
 public function get($object)
 {
     $values = $this->storage->get($object);
     return $values === null ? [] : $values;
 }