Completed
Push — develop ( 01a42f...fc2013 )
by Maarten
02:46
created

FullTextSearch::parseLiteral()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
1
<?php
2
3
namespace DeInternetJongens\LighthouseUtils\Schema\Scalars;
4
5
use GraphQL\Type\Definition\ScalarType;
6
7
class FullTextSearch extends ScalarType
8
{
9
    public $name = 'FullTextSearch';
10
11
    public $description = 'Extension of String type. When querying this field, you can extend the query via the model Scope fullTextSearch';
12
13
    public function serialize($value)
14
    {
15
        return $value;
16
    }
17
18
    public function parseValue($value)
19
    {
20
        return $value;
21
    }
22
23
    public function parseLiteral($valueNode, array $variables = null)
24
    {
25
        return $this->parseValue($valueNode->value);
26
    }
27
}
28