App\Ninja\Intents\BaseIntent::requestClient PHP Method

requestClient() protected method

protected requestClient ( )
    protected function requestClient()
    {
        $clientRepo = app('App\\Ninja\\Repositories\\ClientRepository');
        $client = false;
        foreach ($this->data->entities as $param) {
            if ($param->type == 'Name') {
                $client = $clientRepo->findPhonetically($param->entity);
            }
        }
        return $client;
    }