Skip to content

Commit

Permalink
ComponentResolver: $values rename to $defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed Nov 20, 2019
1 parent ad255ef commit 5fb27d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ComponentResolver.php
Expand Up @@ -29,7 +29,7 @@ final class ComponentResolver
private $purgedHttpData;

/** @var mixed[] */
private $values;
private $defaults;

/** @var int */
private $minCopies;
Expand All @@ -39,13 +39,13 @@ final class ComponentResolver

/**
* @param mixed[] $httpData
* @param mixed[] $values
* @param mixed[] $defaults
*/
public function __construct(array $httpData, array $values, ?int $maxCopies, int $minCopies)
public function __construct(array $httpData, array $defaults, ?int $maxCopies, int $minCopies)
{
$this->httpData = $httpData;
$this->maxCopies = $maxCopies;
$this->values = $values;
$this->defaults = $defaults;
$this->minCopies = $minCopies;

foreach ($httpData as $index => $_) {
Expand Down Expand Up @@ -80,7 +80,7 @@ public function getCreateNum(): int
*/
public function getDefaults(): array
{
return array_slice($this->values, 0, $this->maxCopies, true);
return array_slice($this->defaults, 0, $this->maxCopies, true);
}

/**
Expand Down

0 comments on commit 5fb27d8

Please sign in to comment.