App\Ninja\Transformers\TaskTransformer::includeClient PHP Method

includeClient() public method

public includeClient ( Task $task )
$task app\models\Task
    public function includeClient(Task $task)
    {
        if ($task->client) {
            $transformer = new ClientTransformer($this->account, $this->serializer);
            return $this->includeItem($task->client, $transformer, 'client');
        } else {
            return null;
        }
    }