<?php
/**
* Class for config bot
*
* @Package BOT IRC => Proxy Subject
* @Name XXXpROH4x0r
* @Author cobra90nj <cobra90nj[at]gmail[dot]com>
* @License http://www.gnu.org/licenses/gpl-3.0.html GNU Public License
*/
class ConfigBot {
private $NameBot;
private $NameServer;
private $NameChannel;
private $PortServer;
private $PasswordChannel;
/**
* Construct for config to connect irc bot
*
* @param String $namebot Name of bot
* @param String $nameserver Name of server
* @param String $namechannel Name channel of server
* @param Integer $portserver Port to connect at server
* @param String $passwordchannel Password to connect at server (if necessary)
*/
function __construct($namebot, $nameserver, $namechannel, $portserver = 6667, $passwordchannel = '')
{
$this->NameBot = $namebot;
$this->NameServer = $nameserver;
$this->NameChannel = $namechannel;
$this->PortServer = $portserver;
$this->PasswordChannel = $passwordchannel;
}
/**
* Function for using param of connect to server
*
* @return Array
*/
function ParamPublic()
{
return array($this->NameBot, $this->NameServer, $this->NameChannel, $this->PortServer, $this->PasswordChannel);
}
}