Page MenuHomePhorge

WalletUntil.php
No OneTemporary

Size
791 B
Referenced Files
None
Subscribers
None

WalletUntil.php

<?php
namespace App\Console\Commands;
use App\Console\Command;
class WalletUntil extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'wallet:until {wallet}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Show until when the balance on a wallet lasts.';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$wallet = $this->getWallet($this->argument('wallet'));
if (!$wallet) {
return 1;
}
$until = $wallet->balanceLastsUntil();
$this->info("Lasts until: " . ($until ? $until->toDateString() : 'unknown'));
}
}

File Metadata

Mime Type
text/x-php
Expires
Mon, Sep 28, 9:05 PM (2 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1454939
Default Alt Text
WalletUntil.php (791 B)

Event Timeline