Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/01/2010, 14:36
Avatar de a83
a83
 
Fecha de Ingreso: noviembre-2005
Ubicación: Santiago de chile
Mensajes: 637
Antigüedad: 18 años, 5 meses
Puntos: 1
Exclamación poblemas con funcion

tengo el sigiente problema


Código PHP:
Parse errorsyntax errorunexpected T_STRINGexpecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/pionesof/public_html/mailing/inicio/libchart/classes/model/Point.php on line 3 

y este es el codigo

Código PHP:
<?php
    
class Point {
        private 
$x;
        private 
$y;
        
/**
         * Creates a new sampling point of coordinates (x, y)
         *
         * @param integer x coordinate (label)
         * @param integer y coordinate (value)
         */
        
public function Point($x$y) {
            
$this->$x;
            
$this->$y;
        }

        
/**
         * Gets the x coordinate (label).
         *
         * @return integer x coordinate (label)
         */
        
public function getX() {
            return 
$this->x;
        }

        
/**
         * Gets the y coordinate (value).
         *
         * @return integer y coordinate (value)
         */
        
public function getY() {
            return 
$this->y;
        }
    }    
?>

saludos