11<?php
22
3- namespace Typesence ;
3+ namespace Typesense ;
44
5- use \Typesence \Lib \Configuration ;
5+ use \Typesense \Lib \Configuration ;
66
77/**
88 * Class Aliases
99 *
10- * @package \Typesence
10+ * @package \Typesense
1111 * @date 4/5/20
1212 * @author Abdullah Al-Faqeir <abdullah@devloops.net>
1313 */
@@ -17,12 +17,12 @@ class Aliases implements \ArrayAccess
1717 public const RESOURCE_PATH = '/aliases ' ;
1818
1919 /**
20- * @var \Typesence \Lib\Configuration
20+ * @var \Typesense \Lib\Configuration
2121 */
2222 private Configuration $ config ;
2323
2424 /**
25- * @var \Typesence \ApiCall
25+ * @var \Typesense \ApiCall
2626 */
2727 private ApiCall $ apiCall ;
2828
@@ -34,7 +34,7 @@ class Aliases implements \ArrayAccess
3434 /**
3535 * Aliases constructor.
3636 *
37- * @param \Typesence \Lib\Configuration $config
37+ * @param \Typesense \Lib\Configuration $config
3838 */
3939 public function __construct (Configuration $ config )
4040 {
@@ -57,7 +57,7 @@ public function endPointPath(string $aliasName): string
5757 * @param array $mapping
5858 *
5959 * @return array
60- * @throws \Typesence \Exceptions\TypesenseClientError|\GuzzleHttp\Exception\GuzzleException
60+ * @throws \Typesense \Exceptions\TypesenseClientError|\GuzzleHttp\Exception\GuzzleException
6161 */
6262 public function upsert (string $ name , array $ mapping ): array
6363 {
@@ -66,11 +66,11 @@ public function upsert(string $name, array $mapping): array
6666
6767 /**
6868 * @return array
69- * @throws \Typesence \Exceptions\TypesenseClientError|\GuzzleHttp\Exception\GuzzleException
69+ * @throws \Typesense \Exceptions\TypesenseClientError|\GuzzleHttp\Exception\GuzzleException
7070 */
7171 public function retrieve (): array
7272 {
73- return $ this ->apiCall ->get ($ this -> endPointPath ( self ::RESOURCE_PATH ) , []);
73+ return $ this ->apiCall ->get (self ::RESOURCE_PATH , []);
7474 }
7575
7676 /**
0 commit comments