Skip to content

bugfix #207 format/hlr to stdClass type #209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/MessageBird/Objects/Lookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ class Lookup extends Base
protected $type;

/**
* An associative array containing references to this phone number in several different formats.
* An object containing references to this phone number in several formats.
*
* @var array
* @var stdClass
*
* e164: The phone number in E.164 format.
* international: The phone number in international format.
Expand All @@ -72,7 +72,7 @@ class Lookup extends Base
/**
* The most recent HLR object. If no such HLR objects exists, this array won't be returned.
*
* @var array
* @var stdClass
*
* id(string): An unique random ID which is created on the MessageBird platform.
* network(int): The MCCMNC code of the network provider.
Expand Down Expand Up @@ -108,19 +108,19 @@ public function getType(): ?string
return $this->type;
}

public function getFormats(): ?array
public function getFormats(): ?stdClass
{
return $this->formats;
}

public function getHLR(): ?array
public function getHLR(): ?stdClass
{
return $this->hlr;
}

/**
* @deprecated 2.2.0 No longer used by internal code, please switch to {@see self::loadFromStdclass()}
*
*
* @param mixed $object
*
* @return $this
Expand Down