flat file repo for carriers
This commit is contained in:
parent
4e852ab5d1
commit
5a5eea3096
1 changed files with 16 additions and 0 deletions
16
src/Carrier/FlatFileCarrierRepository.php
Normal file
16
src/Carrier/FlatFileCarrierRepository.php
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace FreightQuote\Carrier;
|
||||||
|
|
||||||
|
class FlatFileCarrierRepository implements CarrierRepository
|
||||||
|
{
|
||||||
|
public function find(int $id): ?Carrier
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function save(Carrier $carrier): Carrier
|
||||||
|
{
|
||||||
|
return new Carrier(null, 'fake@email.com');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue