File: PearError.php

package info (click to toggle)
php-horde-exception 2.0.8-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 588 kB
  • sloc: xml: 679; php: 284; sh: 3; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
 * Stub replacement for PEAR Errors
 *
 * PHP version 5
 *
 * @category Horde
 * @package  Exception
 * @author   Gunnar Wrobel <wrobel@pardus.de>
 * @license  http://www.horde.org/licenses/lgpl21 LGPL 2.1
 * @link     http://pear.horde.org/index.php?package=Exception
 */
class Horde_Exception_Stub_PearError
{
    private $_message;
    private $_code;

    public function __construct($message = null, $code = null)
    {
        $this->_message = $message;
        $this->_code    = $code;
    }

    public function getMessage()
    {
        return $this->_message;
    }

    public function getCode()
    {
        return $this->_code;
    }
}