Files
2025-06-24 14:14:35 +02:00

53 lines
1.5 KiB
PHP

<?php
/**
* NOTICE OF LICENSE
*
* This file is licenced under the Software License Agreement.
* With the purchase or the installation of the software in your application
* you accept the licence agreement.
*
* You must not modify, adapt or create derivative works of this source code
*
* @author PrestaHelp.com
* @copyright 2019 PrestaHelp
* @license LICENSE.txt
*/
class InpostDispatch
{
/**
* Pobranie nazwy statusu zlecenia odbioru
* @param $status_type string - type of status
* @return string - name of status
*/
public static function getDispatchStatus($status_type)
{
switch ($status_type) {
case 'new':
$name = 'Nowe zlecenie odbioru, które nie zostało jeszcze przekazane do realizacji.';
break;
case 'sent':
$name = 'Zlecenie odbioru zostało przekazane do realizacji, ale nie jest jeszcze przyjęte.';
break;
case 'accepted':
$name = 'Zlecenie zostało przyjęte do realizacji przez kuriera.';
break;
case 'done':
$name = 'Zlecenie odbioru zostało zrealizowane.';
break;
case 'rejected':
$name = 'Zlecenie odbioru zostało odrzucone przez kuriera.';
break;
case 'canceled':
$name = 'Zlecenie zostało anulowane.';
break;
default:
$name = '';
break;
}
return $name;
}
}