x = $x; $this->y = $y; } /** * __set_state * * @param array $properties Struct properties * @return void * @ignore */ public function __set_state( array $properties ) { $this->x = $properties['x']; $this->y = $properties['y']; } /** * Returns simple string representation of coordinate * * @return string * @ignore */ public function __toString() { return sprintf( '( %.2f, %.2f )', $this->x, $this->y ); } } ?>