Implement method calls in PHP binding