mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-19 23:07:57 -05:00
- Added missing PHPdocs - Corrected Syntax - Added noinspection parameters to PHPdoc for AJAX called functions - Added missing function return types - Added missing parameter types - Added public keyword to functions without visibility modifier - Corrected incorrectly formatted PHPdocs - Added public to constants and functions missing a visibility keyword
37 lines
483 B
PHP
37 lines
483 B
PHP
<?php
|
|
|
|
namespace App\Models\Tokens;
|
|
|
|
use App\Models\Sale;
|
|
|
|
/**
|
|
* Token_suspended_invoice_count class
|
|
*
|
|
* @property sale sale
|
|
*
|
|
*/
|
|
class Token_suspended_invoice_count extends Token
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function token_id(): string
|
|
{
|
|
return 'SCO';
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function get_value(): int
|
|
{
|
|
$sale = model(Sale::class);
|
|
return $sale->get_suspended_invoice_count();
|
|
}
|
|
}
|