aboutsummaryrefslogtreecommitdiff
path: root/src/Types/KeyValue.php
diff options
context:
space:
mode:
authorАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 03:13:16 +0300
committerАлександр Кирюхин <alexander@kiryukhin.su>2018-01-19 03:13:16 +0300
commit6f452ea995c25a30f214a530fddc6e9d236bdfce (patch)
treeb6538c4e7bd600f3dd4bcaf0d1340155d95da373 /src/Types/KeyValue.php
parent6b07f5f4ebb3043efc4991debebb14529cb77aa5 (diff)
Completed reference implementation, added tests
Diffstat (limited to 'src/Types/KeyValue.php')
-rw-r--r--src/Types/KeyValue.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Types/KeyValue.php b/src/Types/KeyValue.php
index e17dc4d..54b0360 100644
--- a/src/Types/KeyValue.php
+++ b/src/Types/KeyValue.php
@@ -1,4 +1,6 @@
<?php
+declare(strict_types=1);
+
/**
* @author: Alexander Kiryukhin <alexander@kiryukhin.su>
* @license: MIT
@@ -6,7 +8,10 @@
namespace NeonXP\Dotenv\Types;
-
+/**
+ * Class KeyValue
+ * @package NeonXP\Dotenv\Types
+ */
class KeyValue
{
/**
@@ -24,7 +29,7 @@ class KeyValue
* @param string $key
* @param mixed $value
*/
- public function __construct(string $key, mixed $value)
+ public function __construct(string $key, $value)
{
$this->key = $key;
$this->value = $value;
@@ -41,7 +46,7 @@ class KeyValue
/**
* @return mixed
*/
- public function getValue(): mixed
+ public function getValue()
{
return $this->value;
}