CastFunction   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSql() 0 3 1
A parse() 0 2 1
1
<?php declare(strict_types = 1);
2
3
namespace Portiny\Doctrine\Tests\Source;
4
5
use Doctrine\ORM\Query\AST\Functions\FunctionNode;
6
use Doctrine\ORM\Query\Parser;
7
use Doctrine\ORM\Query\SqlWalker;
8
9
class CastFunction extends FunctionNode
10
{
11
12
	/**
13
	 * {@inheritdoc}
14
	 */
15
	public function getSql(SqlWalker $sqlWalker)
16
	{
17
		return 'CAST()';
18
	}
19
20
21
	public function parse(Parser $parser): void
22
	{
23
	}
24
25
}
26