for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Finance module for HiPanel
*
* @link https://github.com/hiqdev/hipanel-module-finance
* @package hipanel-module-finance
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2019, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\finance\logic\bill;
use Yii;
* Class SupportTimeQuantity.
* @author Dmytro Naumenko <[email protected]>
class SupportTimeQuantity extends DefaultQuantityFormatter
{
public function format(): string
return Yii::t('hipanel:finance', '{quantity, time, HH:mm} hour(s)', [
'quantity' => ceil($this->getQuantity()->getQuantity() * 3600),
]);
}