<?php


namespace EasySwoole\Bridge;


class Package
{
    protected $status = self::STATUS_SUCCESS;
    protected $command;
    protected $args;
    protected $msg;

    const STATUS_UNIX_CONNECT_ERROR = -1;
    const STATUS_PACKAGE_ERROR = -2;
    const STATUS_COMMAND_NOT_EXIST = -3;
    const STATUS_COMMAND_ERROR = -4;

    const STATUS_SUCCESS = 1;

    /**
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * @param mixed $status
     */
    public function setStatus($status): void
    {
        $this->status = $status;
    }

    /**
     * @return mixed
     */
    public function getCommand()
    {
        return $this->command;
    }

    /**
     * @param mixed $command
     */
    public function setCommand($command): void
    {
        $this->command = $command;
    }

    /**
     * @return mixed
     */
    public function getArgs()
    {
        return $this->args;
    }

    /**
     * @param mixed $args
     */
    public function setArgs($args): void
    {
        $this->args = $args;
    }

    /**
     * @return mixed
     */
    public function getMsg()
    {
        return $this->msg;
    }

    /**
     * @param mixed $msg
     */
    public function setMsg($msg): void
    {
        $this->msg = $msg;
    }
}