class Bean
{
protected $_bean_name = NULL;
private $_bean_array = NULL;
/**
* set the name of the bean
*
* @param $name string the bean name to set
* @return void
*/
public function set_name($name)
{
$this-_bean_name = $name;
}
/**
* get the name of the bean
*
* @return string the name of the current bean
*/
public function get_name()
{
return $this-_bean_name;
}
/** constructor, build a bean from a array and the name of the bean */
public function __construct($bean_name, &$bean_array)
{
$this-set_name($bean_name