Completed
Push — master ( 0c75f6...35d3bb )
by Stéphane
14:38
created

Text::isValid()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php namespace Rocket\Entities\Fields;
2
3
use Rocket\Entities\Field;
4
5
/**
6
 * Text Field
7
 *
8
 * @property string $value The field's value
9
 */
10
class Text extends Field
11
{
12
    public $table = 'field_text';
13
14
    /**
15
     * {@inheritdoc}
16
     */
17 15
    protected function isValid($value)
18
    {
19 15
        return is_string($value);
20
    }
21
}
22