| 1 | <?php  | 
            ||
| 10 | class InMemoryRepository implements RepositoryInterface  | 
            ||
| 11 | { | 
            ||
| 12 | protected $factory;  | 
            ||
| 13 | protected $store;  | 
            ||
| 14 | |||
| 15 | public function __construct(FactoryInterface $factory)  | 
            ||
| 20 | |||
| 21 | public function add(ModelInterface $model)  | 
            ||
| 25 | |||
| 26 | public function removeById(IntegerAtom $id)  | 
            ||
| 32 | |||
| 33 | public function update(ModelInterface $model, BagInterface $data)  | 
            ||
| 38 | |||
| 39 | public function getById(IntegerAtom $id)  | 
            ||
| 45 | |||
| 46 | public function getAll()  | 
            ||
| 50 | |||
| 51 | public function has(IntegerAtom $id)  | 
            ||
| 56 | }  | 
            ||
| 57 |