| 1 | <?php |
||
| 14 | class DeliveryProvider { |
||
| 15 | static $name = 'Unnamed'; |
||
|
|
|||
| 16 | |||
| 17 | static function calcPrice($cart) { |
||
| 20 | |||
| 21 | static function deliveryTime($cart) { |
||
| 27 | |||
| 28 | static function config() { |
||
| 36 | |||
| 37 | static function availablePayTypeGroups($cart) { |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param \Ecommerce\Cart $cart |
||
| 43 | * @return bool|\Ecommerce\Delivery\Field\Item |
||
| 44 | */ |
||
| 45 | static function getCity($cart) { |
||
| 60 | } |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.