Ejemplo n.º 1
0
     * @param int $timestamp
     * @param string $description
     * @param string $color
     */
    public function Holiday($id, $timestamp, $description = "", $color = "D8D8D8")
    {
        $this->id = $id;
        $this->timestamp = $timestamp;
        $this->description = $description;
        $this->color = $color;
        if (self::$logger->isDebugEnabled()) {
            self::$logger->debug("Holiday {$this->id} - " . date("d M Y", $this->timestamp) . " {$this->description} {$this->color}");
        }
    }
}
Holiday::staticInit();
class Holidays
{
    /**
     * @var Logger The logger
     */
    private static $logger;
    /**
     * Initialize complex static variables
     * @static
     */
    public static function staticInit()
    {
        self::$logger = Logger::getLogger(__CLASS__);
    }
    /**