mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-03 21:07:30 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			291 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			291 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
namespace App\Models;
 | 
						|
 | 
						|
/**
 | 
						|
 * Class OwnedByClientTrait.
 | 
						|
 */
 | 
						|
trait OwnedByClientTrait
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @return bool
 | 
						|
     */
 | 
						|
    public function isClientTrashed()
 | 
						|
    {
 | 
						|
        if (! $this->client) {
 | 
						|
            return false;
 | 
						|
        }
 | 
						|
 | 
						|
        return $this->client->trashed();
 | 
						|
    }
 | 
						|
}
 |