Passed
Push — pulls/good-things-from-phpstan ( 7312f2...8f8b5f )
by Sam
10:36
created

PDOConnector   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPDOConnection() 0 3 1
1
<?php
2
3
namespace SilverStripe\ORM\Tests\MySQLPDOConnectorTest;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\Connect\PDOConnector as OriginalPDOConnector;
7
use PDO;
8
9
class PDOConnector extends OriginalPDOConnector implements TestOnly
10
{
11
    public function getPDOConnection(): PDO
12
    {
13
        return $this->pdoConnection;
14
    }
15
}
16