invoiceninja/app/Models/OwnedByClientTrait.php

22 lines
291 B
PHP
Raw Permalink Normal View History

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