anlutro / anlutro/php-curl

Implement interface?

Đang mở
#42 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
code quality enhancement help wanted
Ngôn ngữ chính
PHP
Star
243
Fork
47
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It would be wonderful if you could have your `cURL` class implement some interface.

Right now, if I want to type-hint the type of a class method argument, I'm forced to type hint the concrete class. If the concrete class would implement an interface, I could type-hint the interface instead.
If I can type-hint an interface, I can more easily supply a mock object for unit testing purposes.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.