mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 15:13:29 +01:00
36 lines
478 B
PHP
36 lines
478 B
PHP
|
<?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));
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|