| 1 | <?php |
||
| 19 | final class SessionStorage implements StorageInterface |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var SessionInterface |
||
| 23 | */ |
||
| 24 | private $session; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param SessionInterface $session |
||
| 28 | */ |
||
| 29 | public function __construct(SessionInterface $session) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function has($name) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function get($name, $default = null) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | public function set($name, $value) |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function remove($name) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * {@inheritdoc} |
||
| 68 | */ |
||
| 69 | public function all() |
||
| 73 | } |
||
| 74 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.