1<?php
2
3/*
4	This file is part of ActiveLink PHP XML Package (www.active-link.com).
5	Copyright (c) 2002-2004 by Zurab Davitiani
6
7	You can contact the author of this software via E-mail at
8	hattrick@mailcan.com
9
10	ActiveLink PHP XML Package is free software; you can redistribute it and/or modify
11	it under the terms of the GNU Lesser General Public License as published by
12	the Free Software Foundation; either version 2.1 of the License, or
13	(at your option) any later version.
14
15	ActiveLink PHP XML Package is distributed in the hope that it will be useful,
16	but WITHOUT ANY WARRANTY; without even the implied warranty of
17	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18	GNU Lesser General Public License for more details.
19
20	You should have received a copy of the GNU Lesser General Public License
21	along with ActiveLink PHP XML Package; if not, write to the Free Software
22	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23*/
24
25/**
26  *	Leaf class is part of a Tree-Branch-Leaf trio
27  *	@class		Leaf
28  *	@package	org.active-link.xml
29  *	@author		Zurab Davitiani
30  *	@version	0.4.0
31  *	@see		Tree, Branch
32  */
33
34class Leaf {
35
36	// protected variables
37	var $value;
38
39	/**
40	  *	Constructor for the object
41	  *	@method		Leaf
42	  *	@param		optional mixed value
43	  *	@returns	none
44	  */
45	function Leaf($value = "") {
46		$this->setValue($value);
47	}
48
49	/**
50	  *	Gets Leaf object value
51	  *	@method		getValue
52	  *	@returns	value of the object
53	  */
54	function getValue() {
55		return $this->value;
56	}
57
58	/**
59	  *	Sets Leaf object to the specified value
60	  *	@method		setValue
61	  *	@param		mixed value
62	  *	@returns	none
63	  */
64	function setValue($value) {
65		$this->value = $value;
66	}
67
68}
69
70?>
71