invoiceninja/app/Models/OwnedByClientTrait.php
2017-01-30 18:05:31 +02:00

20 lines
288 B
PHP

<?php namespace App\Models;
/**
* Class OwnedByClientTrait
*/
trait OwnedByClientTrait
{
/**
* @return bool
*/
public function isClientTrashed()
{
if (!$this->client) {
return false;
}
return $this->client->trashed();
}
}