Skip to content

Commit 6e85bef

Browse files
gronostajoKrzysztof Śmiałek
andauthored
Correct typing in phpdocs and fix getCustomDetails() (#194)
Co-authored-by: Krzysztof Śmiałek <[email protected]>
1 parent 3b56646 commit 6e85bef

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

src/MessageBird/Objects/Contact.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Contact extends Base
6161
/**
6262
* Custom fields of the contact.
6363
*
64-
* @var array
64+
* @var stdClass
6565
*/
6666
protected $customDetails = [];
6767
/**
@@ -88,7 +88,7 @@ class Contact extends Base
8888
/**
8989
* The date and time of the updated of the contact in RFC3339 format (Y-m-d\TH:i:sP)
9090
*
91-
* @var string
91+
* @var string|null
9292
*/
9393
protected $updatedDatetime;
9494

@@ -122,7 +122,7 @@ public function getUpdatedDatetime(): ?string
122122
return $this->updatedDatetime;
123123
}
124124

125-
public function getCustomDetails(): array
125+
public function getCustomDetails(): stdClass
126126
{
127127
return $this->customDetails;
128128
}

src/MessageBird/Objects/Conversation/Contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Contact extends Base
2828
/**
2929
* The MSISDN/phone number of this contact.
3030
*
31-
* @var string
31+
* @var int|null
3232
*/
3333
public $msisdn;
3434

src/MessageBird/Objects/Conversation/Conversation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Conversation extends Base
2929
/**
3030
* The URL of this conversation object.
3131
*
32-
* @var string
32+
* @var string|null
3333
*/
3434
public $href;
3535

src/MessageBird/Objects/Conversation/Message.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Message extends Base implements JsonSerializable
4444
* outbound messages sent through the API or 'received' (mobile-originated)
4545
* for inbound messages from the contact.
4646
*
47-
* @var string
47+
* @var string|null
4848
*/
4949
public $direction;
5050

@@ -59,7 +59,7 @@ class Message extends Base implements JsonSerializable
5959

6060
/**
6161
* Type of this message's content. Possible values: "text", "image",
62-
* "audio", "video", "file", "location".
62+
* "audio", "video", "file", "location", "hsm", "interactive", "email".
6363
*
6464
* @var string
6565
*/

src/MessageBird/Objects/Conversation/MessageReference.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class MessageReference extends Base
2525
public $totalCount;
2626

2727
/**
28-
*
29-
* @var string
28+
* @var string|null
3029
*/
3130
public $lastMessageId;
3231
}

src/MessageBird/Objects/Conversation/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Webhook extends Base implements JsonSerializable
3030
/**
3131
* The URL of this webhook object.
3232
*
33-
* @var string
33+
* @var string|null
3434
*/
3535
public $href;
3636

0 commit comments

Comments
 (0)