Skip to content

Commit 85efb60

Browse files
committed
Add PHPDoc for getBaseUrl methods
1 parent 4babbdf commit 85efb60

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/Curl/AbstractExecutor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ abstract class AbstractExecutor implements CurlInterface
2020
*/
2121
protected static $baseUrl = null;
2222

23+
/**
24+
* Returns base URL for Magento instance
25+
* @return string
26+
*/
2327
public function getBaseUrl(): string
2428
{
2529
return getenv('MAGENTO_BASE_URL');

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/Curl/AdminExecutor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ public function __construct($removeBackend)
5656
$this->authorize();
5757
}
5858

59+
/**
60+
* Returns base URL for Magento backend instance
61+
* @return string
62+
*/
5963
public function getBaseUrl(): string
6064
{
6165
$backendHost = getenv('MAGENTO_BACKEND_BASE_URL') ?: parent::getBaseUrl();

src/Magento/FunctionalTestingFramework/DataGenerator/Persist/Curl/WebapiExecutor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct($storeCode = null)
6565
}
6666

6767
/**
68-
* Returns WebApi base URL, fallback to Magento Base URL
68+
* Returns base URL for Magento Web API instance
6969
* @return string
7070
*/
7171
public function getBaseUrl(): string

0 commit comments

Comments
 (0)