Skip to content
Open
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: 3 additions & 9 deletions lib/Braintree/IsNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,18 @@ public function __construct($name)

/**
* Sets the value of the object's "is" key to a string of $value
*
* @param object $value to have its string value set in $this
*
* @return object
*/
public function is($value)
public function is(string $value): self
{
$this->searchTerms['is'] = strval($value);
$this->searchTerms['is'] = $value;

return $this;
}

/**
* The searchTerms
*
* @return array
*/
public function toParam()
public function toParam(): array
{
return $this->searchTerms;
}
Expand Down