Passed
Push — feature/0.7.0 ( b4ac8e...ca90d0 )
by Ryuichi
43:26
created

Test1Model::test1()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 9.4285
1
<?php
2
namespace WebStream\Test\Model;
3
4
use WebStream\Core\CoreModel;
5
use WebStream\Annotation\Attributes\Database;
6
use WebStream\Annotation\Attributes\Query;
7
8
/**
9
 * @Database(driver="WebStream\Database\Driver\Mysql", config="config/database.mysql.ini")
10
 */
11
class Test1Model extends CoreModel
12
{
13
    public function test1()
14
    {
15
        $sql = "SELECT * FROM T_WebStream LIMIT :limit, :offset";
16
        $bind = ["limit" => 0, "offset" => 1];
17
18
        return $this->select($sql, $bind);
0 ignored issues
show
Bug introduced by
The method select() does not exist on WebStream\Test\Model\Test1Model. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

18
        return $this->/** @scrutinizer ignore-call */ select($sql, $bind);
Loading history...
19
    }
20
}
21