diff options
author | Amenadiel <amenadiel@gmail.com> | 2020-02-05 14:19:42 +0300 |
---|---|---|
committer | Amenadiel <amenadiel@gmail.com> | 2020-02-05 14:19:42 +0300 |
commit | 82d7c05ebd13330b831857879d2818dfa1d0c799 (patch) | |
tree | 9b418752f35b3a31be0856d0f959e3ac5ced87dc /src/decorators/IfEmptyDecorator.php | |
parent | d39ae72a31839ba24e9f2007398c71fba2a2d1c7 (diff) |
Creating Tag v6.0.0-RC5 at 2020-02-05 -v6.0.0-RC5
Diffstat (limited to 'src/decorators/IfEmptyDecorator.php')
-rw-r--r-- | src/decorators/IfEmptyDecorator.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/decorators/IfEmptyDecorator.php b/src/decorators/IfEmptyDecorator.php index ad7cdfc7..ece3a857 100644 --- a/src/decorators/IfEmptyDecorator.php +++ b/src/decorators/IfEmptyDecorator.php @@ -1,7 +1,7 @@ <?php /** - * PHPPgAdmin v6.0.0-RC4 + * PHPPgAdmin v6.0.0-RC5 */ namespace PHPPgAdmin\Decorators; @@ -10,20 +10,20 @@ class IfEmptyDecorator extends Decorator { public function __construct($value, $empty, $full = null) { - $this->v = $value; - $this->e = $empty; + $this->val = $value; + $this->empty = $empty; if (null !== $full) { - $this->f = $full; + $this->full = $full; } } public function value($fields) { - $val = Decorator::get_sanitized_value($this->v, $fields); + $val = Decorator::get_sanitized_value($this->val, $fields); if (empty($val)) { - return Decorator::get_sanitized_value($this->e, $fields); + return Decorator::get_sanitized_value($this->empty, $fields); } - return isset($this->f) ? Decorator::get_sanitized_value($this->f, $fields) : $val; + return isset($this->full) ? Decorator::get_sanitized_value($this->full, $fields) : $val; } } |