Skip to content

Commit 7b2758c

Browse files
committed
Docblock updates
1 parent b794d78 commit 7b2758c

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

Deferred.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ public function __destruct()
3030
$this->deferredAction();
3131
}
3232
}
33-
33+
34+
/**
35+
* Cancel this deferred call.
36+
* @return void
37+
*/
3438
public final function cancelDeferral(): void
3539
{
3640
$this->cancelled = true;

HttpRequest/HttpRequest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,20 @@ public function getResponseAsXml(): ?SimpleXMLElement
520520

521521
/**
522522
* Get the \Feast\Response object for a finished request.
523+
*
523524
* @return Response|null
524525
*/
525526
public function getResponse(): ?Response
526527
{
527528
return $this->response;
528529
}
529530

531+
/**
532+
* Get a response header by name.
533+
*
534+
* @param string $name
535+
* @return string|null
536+
*/
530537
public function getResponseHeader(string $name): ?string
531538
{
532539
if ($this->response === null) {
@@ -535,6 +542,10 @@ public function getResponseHeader(string $name): ?string
535542
return $this->response->getHeader($name);
536543
}
537544

545+
/**
546+
* Get response content type.
547+
* @return string|null
548+
*/
538549
public function getResponseContentType(): ?string
539550
{
540551
if ($this->response === null) {

0 commit comments

Comments
 (0)