Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
4 / 4 |
| LocalValueTrait | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
4 / 4 |
| getLocalValue | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| setLocalValue | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
| hasLocalValue | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
| <?php | |
| declare(strict_types=1); | |
| namespace Korobochkin\WPKit\DataComponents\Traits; | |
| trait LocalValueTrait | |
| { | |
| /** | |
| * @var mixed | |
| */ | |
| protected $localValue; | |
| public function getLocalValue() | |
| { | |
| return $this->localValue; | |
| } | |
| public function setLocalValue($value) | |
| { | |
| $this->localValue = $value; | |
| return $this; | |
| } | |
| public function hasLocalValue() | |
| { | |
| return isset($this->localValue); | |
| } | |
| } |