PHP 8.3.30
Preview: Entry.php Size: 1015 B
/home/getspomw/itechservicellc.com/vendor/vlucas/phpdotenv/src/Parser/Entry.php

<?php

declare(strict_types=1);

namespace Dotenv\Parser;

use PhpOption\Option;

final class Entry
{
    /**
     * The entry name.
     *
     * @var string
     */
    private $name;

    /**
     * The entry value.
     *
     * @var \Dotenv\Parser\Value|null
     */
    private $value;

    /**
     * Create a new entry instance.
     *
     * @param string                    $name
     * @param \Dotenv\Parser\Value|null $value
     *
     * @return void
     */
    public function __construct(string $name, ?Value $value = null)
    {
        $this->name = $name;
        $this->value = $value;
    }

    /**
     * Get the entry name.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Get the entry value.
     *
     * @return \PhpOption\Option<\Dotenv\Parser\Value>
     */
    public function getValue()
    {
        /** @var \PhpOption\Option<\Dotenv\Parser\Value> */
        return Option::fromValue($this->value);
    }
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1015 B lrw-r--r-- 2025-10-28 20:23:50
Edit Download
12.24 KB lrw-r--r-- 2025-10-28 20:23:50
Edit Download
1.24 KB lrw-r--r-- 2025-10-28 20:23:50
Edit Download
3.07 KB lrw-r--r-- 2025-10-28 20:23:50
Edit Download
1.71 KB lrw-r--r-- 2025-10-28 20:23:50
Edit Download
334 B lrw-r--r-- 2025-10-28 20:23:50
Edit Download
1.55 KB lrw-r--r-- 2025-10-28 20:23:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).