Projekt

Obecné

Profil

Stáhnout (1.1 KB) Statistiky
| Větev: | Tag: | Revize:
<?php defined('SYSPATH') or die('No direct script access.');
/*
* This file is part of open source system FreenetIS
* and it is released under GPLv3 licence.
*
* More info about licence can be found:
* http://www.gnu.org/licenses/gpl-3.0.html
*
* More info about project can be found:
* http://www.freenetis.org/
*
*/

require_once "Service.php";

/**
* SMS služba
*
* @author Ondřej Fibich
*
* @property DateTime $date_time
* @property float $price
* @property integer $period
* @property string $number
* @property string $description
*/
class Sms_Service extends Service {

/**
* Tarifové období
* @see Period
* @var integer
*/
protected $period;

/**
* Volané číslo
* @var integer
*/
protected $number;

/**
* Popis
* @var string
*/
protected $description;

protected function set_period($period)
{
if (! period::is_valid($period)) {
throw new InvalidArgumentException(
url_lang::lang('texts.Wrong period')
);
}
$this->period = $period;
}

}
(10-10/11)