- Implemented TransportRepository for managing transport data with methods for listing, finding, saving, and retrieving transport costs. - Created ShopTransportController to handle transport-related actions, including listing, editing, and saving transports. - Added views for transport management: transports list and transport edit forms. - Introduced JavaScript for responsive tabs in transport edit view. - Updated testing suite with comprehensive unit tests for TransportRepository and ShopTransportController. - Increased test coverage with new assertions and scenarios for transport functionalities.
11 lines
239 B
PHP
11 lines
239 B
PHP
<?php
|
|
namespace admin\factory;
|
|
class ShopTransport
|
|
{
|
|
public static function lowest_transport_price( $wp ) {
|
|
global $mdb;
|
|
$repo = new \Domain\Transport\TransportRepository($mdb);
|
|
return $repo->lowestTransportPrice($wp);
|
|
}
|
|
}
|