FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
php-http
/
discovery
/
src
/
Strategy
Edit File: MockClientStrategy.php
<?php namespace AmeliaHttp\Discovery\Strategy; use AmeliaHttp\Client\HttpAsyncClient; use AmeliaHttp\Client\HttpClient; use AmeliaHttp\Mock\Client as Mock; /** * Find the Mock client. * * @author Sam Rapaport <me@samrapdev.com> */ final class MockClientStrategy implements DiscoveryStrategy { /** * {@inheritdoc} */ public static function getCandidates($type) { switch ($type) { case HttpClient::class: case HttpAsyncClient::class: return [['class' => Mock::class, 'condition' => Mock::class]]; default: return []; } } }
Save
Back