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

19 lines
287 B
PHP
Raw Normal View History

2015-11-16 20:21:48 +01:00
<?php namespace App\Models;
/**
* 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()
{
if (!$this->client) {
return false;
}
return $this->client->trashed();
}
}