Issues (13)

exemples/persons.php (2 issues)

1
<?php require __DIR__ . "../vendor/autoload.php";
2
3
$token = "octa.************.************";
4
$userName = "";
5
$userPassword = "";
6
$subDomain = "";
7
8
$login = new Login($token, $userName, $userPassword, $subDomain);
0 ignored issues
show
The type Login was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
$token = $login->login()->callback()->token;
10
11
$person = new Person($token);
0 ignored issues
show
The type Person was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
12
13
$id = "3f8b20ab-7865-449d-a88d-4d9ff837b640";
14
$clientById = $person->findById($id)->callback();
15
16
$email = "[email protected]";
17
$clientByEmail = $person->findByEmail($email)->callback();
18
$requesters = $person->findRequesters()->callback();
19
$agents = $person->findAgents()->callback();
20
$newClient = $person->createClient(
21
    "Gabriel Silva",
22
    "[email protected]",
23
    234234,
24
    "",
25
    "Agência Galg Digitais",
26
    "Agência de inovação e resultados digitais",
27
    "agenciagalg.com.br"
28
);
29
//var_dump($newClient);