1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 07:33:04 +01:00
invoiceninja/app/Models/OwnedByClientTrait.php

22 lines
291 B
PHP
Raw Normal View History

2017-01-30 20:40:43 +01:00
<?php
namespace App\Models;
2015-11-16 20:21:48 +01:00
/**
2017-01-30 20:40:43 +01:00
* Class OwnedByClientTrait.
*/
2015-11-16 20:21:48 +01:00
trait OwnedByClientTrait
{
/**
* @return bool
*/
2015-11-16 20:21:48 +01:00
public function isClientTrashed()
{
2017-01-30 20:40:43 +01:00
if (! $this->client) {
2015-11-16 20:21:48 +01:00
return false;
}
return $this->client->trashed();
}
2017-01-30 17:05:31 +01:00
}