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 ); } } ?>