public function toArray()
    {
        $array = array();

        foreach($this->_data as $key=>$value)
            $array[$key] = ($value instanceof PropertyReference) ? $value->value() : $value;

        return $array;
    }
public function toArray()
    {
        $array = array();

        foreach($this->_data as $key=>$value)
            $array[$key] = ($value instanceof PropertyReference) ? $value->value() : $value;

        return $array;
    }
public function toArray ( ) { $ array = array ( ) ; foreach ( $ this -> _data as $ key => $ value ) $ array [ $ key ] = ( $ value instanceof PropertyReference ) ? $ value -> value ( ) : $ value ; return $ array ; }
Returns the object as an array
@return array
Returns the object as an array