HEX
Server: nginx/1.28.0
System: Linux w3c-2 6.8.0-78-generic #78-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 12 11:34:18 UTC 2025 x86_64
User: e_learni1 (1076)
PHP: 8.3.29
Disabled: NONE
Upload Files
File: //opt/wp-cli/wp-cli-login-command/src/Package.php
<?php

namespace WP_CLI_Login;

class Package
{
    /**
     * Absolute path to package root directory.
     * @var string
     */
    private $root;

    /**
     * Package constructor.
     *
     * @param $root
     */
    public function __construct($root)
    {
        $this->root = $root;
    }

    /**
     * Get an absolute file path, from the given path relative to the package root.
     *
     * @param $relative
     *
     * @return string
     */
    public function fullPath($relative)
    {
        return $this->root . '/' . $relative;
    }
}