Add a magic method for src/input.php