Skip to content

Commit 2e9a0fb

Browse files
committed
Documenting methods as internal or API
1 parent 4f57d5f commit 2e9a0fb

File tree

8 files changed

+21
-0
lines changed

8 files changed

+21
-0
lines changed

src/Analytics.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ public function __construct($isSsl = false)
467467
/**
468468
* Sets a request to be either synchronous or asynchronous (non-blocking).
469469
*
470+
* @api
470471
* @param boolean $isAsyncRequest
471472
* @return $this
472473
*/
@@ -494,6 +495,7 @@ public function makeNonBlocking()
494495
/**
495496
* Sets the HttpClient.
496497
*
498+
* @internal
497499
* @param HttpClient $httpClient
498500
* @return $this
499501
*/
@@ -533,6 +535,7 @@ private function getEndpoint()
533535
/**
534536
* Sets debug mode to true or false.
535537
*
538+
* @api
536539
* @param bool $value
537540
* @return \TheIconic\Tracking\GoogleAnalytics\Analytics
538541
*/
@@ -574,6 +577,7 @@ private function sendHit($methodName)
574577
/**
575578
* Build and returns URL used to send to Google Analytics.
576579
*
580+
* @api
577581
* @return string
578582
*/
579583
public function getUrl()

src/AnalyticsResponse.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public function __construct(RequestInterface $request, $response)
6363
* Gets the HTTP status code.
6464
* It return NULL if the request was asynchronous since we are not waiting for the response.
6565
*
66+
* @api
6667
* @return null|int
6768
*/
6869
public function getHttpStatusCode()
@@ -73,6 +74,7 @@ public function getHttpStatusCode()
7374
/**
7475
* Gets the request URI used to get the response.
7576
*
77+
* @api
7678
* @return string
7779
*/
7880
public function getRequestUrl()
@@ -83,6 +85,7 @@ public function getRequestUrl()
8385
/**
8486
* Gets the debug response. Returns empty array if no response found.
8587
*
88+
* @api
8689
* @return array
8790
*/
8891
public function getDebugResponse()

src/Network/HttpClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function __destruct()
5454
/**
5555
* Sets HTTP client.
5656
*
57+
* @internal
5758
* @param Client $client
5859
*/
5960
public function setClient(Client $client)
@@ -80,6 +81,7 @@ private function getClient()
8081
/**
8182
* Sends request to Google Analytics.
8283
*
84+
* @internal
8385
* @param string $url
8486
* @param boolean $nonBlocking
8587
* @return AnalyticsResponse

src/Network/PrepareUrl.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class PrepareUrl
2828
/**
2929
* Build URL which is sent to Google Analytics
3030
*
31+
* @internal
3132
* @param string $url
3233
* @param SingleParameter[] $singleParameters
3334
* @param CompoundParameterCollection[] $compoundParameters
@@ -49,6 +50,7 @@ public function build($url, array $singleParameters, array $compoundParameters)
4950
}
5051

5152
/**
53+
* @internal
5254
* @return array
5355
*/
5456
public function getPayloadParameters()

src/Parameters/CompoundParameterCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function add(CompoundParameter $compoundParameter)
5151
}
5252

5353
/**
54+
* @internal
5455
* @inheritDoc
5556
*/
5657
public function getParametersArray()
@@ -73,6 +74,7 @@ public function getParametersArray()
7374
/**
7475
* Gets the human readable items for the parameter.
7576
*
77+
* @internal
7678
* @return array
7779
*/
7880
public function getReadableItems()
@@ -87,6 +89,7 @@ public function getReadableItems()
8789
}
8890

8991
/**
92+
* @internal
9093
* @inheritDoc
9194
*/
9295
public function getIterator()

src/Parameters/CompoundParameterCollectionInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ interface CompoundParameterCollectionInterface
99
/**
1010
* Adds a compound parameter to the collection.
1111
*
12+
* @internal
1213
* @param CompoundParameter $compoundParameter
1314
*/
1415
public function add(CompoundParameter $compoundParameter);
1516

1617
/**
1718
* Generates and returns all the payload parameters of compound parameters hold by the collection.
1819
*
20+
* @internal
1921
* @return array
2022
*/
2123
public function getParametersArray();

src/Parameters/CompoundParameterInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ interface CompoundParameterInterface
1111
/**
1212
* Gets the payload parameters and their values.
1313
*
14+
* @internal
1415
* @return array
1516
*/
1617
public function getParameters();
1718

1819
/**
1920
* Gets the parameters and their value in a human readable form.
2021
*
22+
* @internal
2123
* @return array
2224
*/
2325
public function getReadableParameters();

src/Parameters/SingleParameterInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ interface SingleParameterInterface
1111
/**
1212
* Gets the name for the parameter.
1313
*
14+
* @internal
1415
* @return string
1516
*/
1617
public function getName();
1718

1819
/**
1920
* Sets a value for the parameter.
2021
*
22+
* @internal
2123
* @param $value
2224
* @return $this
2325
*/
@@ -26,6 +28,7 @@ public function setValue($value);
2628
/**
2729
* Gets the value for the parameter.
2830
*
31+
* @internal
2932
* @return mixed
3033
*/
3134
public function getValue();

0 commit comments

Comments
 (0)