1 | <?php |
||
10 | final class Client |
||
11 | { |
||
12 | private static $ELASTICSEARCH_DEFAULT_HOST = 'elasticsearch:9200'; |
||
13 | |||
14 | /** |
||
15 | * @var \Elasticsearch\Client |
||
16 | */ |
||
17 | private static $instance; |
||
18 | |||
19 | /** |
||
20 | * To avoid the direct construction |
||
21 | */ |
||
22 | private function __construct() |
||
25 | |||
26 | /** |
||
27 | * Returns ElasticSearch client object |
||
28 | * @return \Elasticsearch\Client |
||
29 | */ |
||
30 | public static function getInstance() |
||
44 | } |
||
45 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.