Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 0ca03ad

Browse files
Freeaqingmeweierophinney
authored andcommitted
AcceptableViewModelSelector - Incorporated PR Feedback
1 parent 87921cd commit 0ca03ad

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Header/AbstractAccept.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function hasType($matchAgainst)
291291
* Match a media string against this header
292292
*
293293
* @param array|string $matchAgainst
294-
* @return array|boolean The matched value or false
294+
* @return AcceptFieldValuePart|boolean The matched value or false
295295
*/
296296
public function match($matchAgainst)
297297
{

src/Header/Accept/FieldValuePart/AbstractFieldValuePart.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class AbstractFieldValuePart
3131
* A Field Value Part this Field Value Part matched against.
3232
* @var AbstractFieldValuePart
3333
*/
34-
protected $matchedPart;
34+
protected $matchedAgainst;
3535

3636
/**
3737
*
@@ -46,22 +46,22 @@ public function __construct($internalValues)
4646
* Set a Field Value Part this Field Value Part matched against.
4747
*
4848
* @param AbstractFieldValuePart $matchedPart
49-
* return AbstractFieldValuePart provides fluent interface
49+
* @return AbstractFieldValuePart provides fluent interface
5050
*/
51-
public function setMatchedAgainst(AbstractFieldValuePart $matchedPart)
51+
public function setMatchedAgainst(AbstractFieldValuePart $matchedAgainst)
5252
{
53-
$this->matchedPart = $matchedPart;
53+
$this->matchedAgainst = $matchedAgainst;
5454
return $this;
5555
}
5656

5757
/**
5858
* Get a Field Value Part this Field Value Part matched against.
5959
*
60-
* return AbstractFieldValuePart|null
60+
* @return AbstractFieldValuePart|null
6161
*/
6262
public function getMatchedAgainst()
6363
{
64-
return $this->matchedPart;
64+
return $this->matchedAgainst;
6565
}
6666

6767
/**

0 commit comments

Comments
 (0)