-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
499 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
namespace Selective\Transformer; | ||
|
||
/** | ||
* Filter. | ||
*/ | ||
final class ArrayTransformerFilterItem | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $name; | ||
|
||
/** | ||
* @var array<mixed> | ||
*/ | ||
private $arguments; | ||
|
||
/** | ||
* The constructor. | ||
* | ||
* @param string $name The filter to apply | ||
* @param array<mixed> $arguments The parameters for the filter | ||
*/ | ||
public function __construct(string $name, array $arguments = []) | ||
{ | ||
$this->name = $name; | ||
$this->arguments = $arguments; | ||
} | ||
|
||
/** | ||
* The filter to apply. | ||
* | ||
* @return string The name | ||
*/ | ||
public function getName(): string | ||
{ | ||
return $this->name; | ||
} | ||
|
||
/** | ||
* Get filter parameters. | ||
* | ||
* @return array<mixed> The params | ||
*/ | ||
public function getArguments(): array | ||
{ | ||
return $this->arguments; | ||
} | ||
} |
Oops, something went wrong.