YetiForceCompany/YetiForceCRM

View on GitHub
app/Cli/Base.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php
/**
 * Base cli file.
 *
 * @package Cli
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */

namespace App\Cli;

/**
 * Base cli class.
 */
abstract class Base
{
    /** @var \App\Cli Cli instance. */
    protected $cli;

    /** @var \League\CLImate\CLImate CLImate instance. */
    protected $climate;

    /** @var string Module Name */
    public $moduleName;

    /** @var bool Show only help info */
    public $helpMode = false;

    /**
     * Construct.
     *
     * @param \App\Cli $cli
     */
    public function __construct(\App\Cli $cli)
    {
        $this->cli = $cli;
        $this->climate = $cli->climate;
    }
}