Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
2 / 2 |
DeleteLocalValueTrait | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
deleteLocal | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
declare(strict_types=1); | |
namespace Korobochkin\WPKit\DataComponents\Traits; | |
use Korobochkin\WPKit\DataComponents\NodeInterface; | |
trait DeleteLocalValueTrait | |
{ | |
public function deleteLocal() | |
{ | |
/** | |
* @var $this NodeInterface | |
*/ | |
$this->setLocalValue(null); | |
return true; | |
} | |
} |