public function convert($type) { $class = "utils\\convert\\positionTo" . strtoupper($type); $converter = new Convert\context(new $class()); return $converter->algorithm(get_object_vars($this)); }
public function convert($type) { $class = "utils\\convert\\pointTo" . $type; $converter = new Convert\context(new $class()); return $converter->algorithm(\get_object_vars($this)); }