These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Phiber; |
||
4 | |||
5 | use Phiber\ORM\Persistence\PhiberPersistence; |
||
6 | use StdClass; |
||
7 | |||
8 | /** |
||
9 | *Constante que define a base de onde está localizado o projeto |
||
10 | */ |
||
11 | define("BASE_DIR",str_replace('\\', '/', dirname(__FILE__))); |
||
12 | |||
13 | /** |
||
14 | * A classe Phiber é a responsável por ser a classe módulo entre as funcionalidades do |
||
15 | * Phiber, é por ela que você chamará desde a classe persistencia até a classe de encriptação. |
||
16 | * |
||
17 | * @package phiber |
||
18 | */ |
||
19 | class Phiber extends PhiberPersistence |
||
20 | { |
||
21 | /** |
||
22 | * Phiber constructor. |
||
23 | * |
||
24 | * @param string|StdClass $object |
||
25 | */ |
||
26 | public function __construct($object = "") |
||
27 | { |
||
28 | parent::__construct($object); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * Método opcional responsável por retornar uma instância da classe PhiberPersistence, |
||
33 | * que é responsável pela persistencia dos dados. (CREATE, RETREAVE, UPDATE, DELETE) |
||
34 | * |
||
35 | * @deprecated |
||
36 | * @param string|\stdClass $object |
||
37 | * @return PhiberPersistence |
||
38 | */ |
||
39 | public function openPersist($object = "") |
||
40 | { |
||
41 | return new PhiberPersistence($object); |
||
0 ignored issues
–
show
|
|||
42 | } |
||
43 | } |
||
44 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.