PhpToHaxe - tool for helping use php from haxe
Code to code
Code to extern
PhpDoc methods
PhpDoc consts
Source php code to convert
class Test { /** * This is variable. * @var string */ public $pub; private $priv; /** * Create child component. * @param MyClass $tag Tag is a short name. * @param string $id * @return SyqComponent */ function create(MyClass $tag,$id) { $s = substr($id, 3); } private function innerFunc() { $b = 10; } }
Result haxe code
class Test { /** * This is variable. */ public var pub : String; private var priv; /** * Create child component. * @param tag Tag is a short name. */ public function create(tag:MyClass, id:String) : SyqComponent { s = id.substr(3); } private function innerFunc() : Void { b = 10; } }