PlaceHolderTrait   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setPlaceHolder() 0 4 1
A getPlaceHolder() 0 4 1
1
<?php
2
3
namespace steevanb\SymfonyFormOptionsBuilder\OptionsBuilder\Behavior;
4
5
use steevanb\SymfonyFormOptionsBuilder\Behavior\OptionAccessorsTrait;
6
7
trait PlaceHolderTrait
8
{
9
    use OptionAccessorsTrait;
10
11
    /**
12
     * @param false|string $placeholder
13
     * @return $this
14
     * @link http://symfony.com/doc/current/reference/forms/types/choice.html#placeholder
15
     */
16
    public function setPlaceHolder($placeholder)
17
    {
18
        return $this->setOption('placeholder', $placeholder);
19
    }
20
21
    /**
22
     * @return false|string
23
     */
24
    public function getPlaceHolder()
25
    {
26
        return $this->getOption('placeholder');
27
    }
28
}
29