| 1 | <?php |
||
| 20 | final class SessionStorage implements StorageInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var SessionInterface |
||
| 24 | */ |
||
| 25 | private $session; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param SessionInterface $session |
||
| 29 | */ |
||
| 30 | public function __construct(SessionInterface $session) |
||
| 34 | |||
| 35 | /** |
||
| 36 | * {@inheritdoc} |
||
| 37 | */ |
||
| 38 | public function has($name) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function get($name, $default = null) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * {@inheritdoc} |
||
| 53 | */ |
||
| 54 | public function set($name, $value) |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | public function remove($name) |
||
| 66 | |||
| 67 | /** |
||
| 68 | * {@inheritdoc} |
||
| 69 | */ |
||
| 70 | public function all() |
||
| 74 | } |
||
| 75 |
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.