1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Utils/Traits/GeneratesNumberCounter.php

36 lines
478 B
PHP
Raw Normal View History

<?php
namespace App\Utils\Traits;
/**
* Class GeneratesNumberCounter
* @package App\Utils\Traits
*/
trait GeneratesNumberCounter
{
public function getNextNumber($entity)
{
}
public function hasSharedCounter() : bool
{
return $this->getSettingsByKey($shared_invoice_quote_counter)->shared_invoice_quote_counter;
}
public function incrementCounter($entity)
{
}
public function entity_name($entity)
{
return strtolower(class_basename($entity));
}
}