mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
45 lines
788 B
PHP
45 lines
788 B
PHP
<?php
|
|
/**
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
*
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
*
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
*
|
|
* @license https://opensource.org/licenses/AAL
|
|
*/
|
|
|
|
namespace App\Utils\Traits;
|
|
|
|
/**
|
|
* Class Inviteable
|
|
* @package App\Utils\Traits
|
|
*/
|
|
trait Inviteable
|
|
{
|
|
|
|
|
|
/**
|
|
* Gets the status.
|
|
*
|
|
* @return string The status.
|
|
*/
|
|
public function getStatus() : string
|
|
{
|
|
$status = '';
|
|
|
|
if(isset($this->sent_date))
|
|
$status = ctrans('texts.invitation_status_sent');
|
|
|
|
if(isset($this->opened_date))
|
|
$status = ctrans('texts.invitation_status_opened');
|
|
|
|
|
|
if(isset($this->viewed_date))
|
|
$status = ctrans('texts.invitation_status_viewed');
|
|
|
|
|
|
return $status;
|
|
}
|
|
|
|
} |