Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?hh
- class Receipt_Verifier_Check {
- private (function(EtsyModel_Receipt, EtsyModel_Shop_Receipt2): bool) $check_function;
- public function __construct(
- private string $left_field,
- private string $right_field,
- (function(EtsyModel_Receipt, EtsyModel_Shop_Receipt2): bool) $check_function
- ) { $this->check_function = $check_function; }
- public function check(EtsyModel_Receipt $master_receipt, EtsyModel_Shop_Receipt2 $shard_receipt): bool {
- return $this->check_function($master_receipt, $shard_receipt);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement