Completed
Push — master ( 7bd861...f16e30 )
by Márcio Lucas R.
02:22
created

Phiber::openPersist()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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);
0 ignored issues
show
Bug introduced by
It seems like $object defined by parameter $object on line 26 can also be of type object<stdClass>; however, Phiber\ORM\Persistence\P...sistence::__construct() does only seem to accept string, maybe add an additional type check?

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.

Loading history...
29
    }
30
}
31