-
Notifications
You must be signed in to change notification settings - Fork 14
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
Sebastian Thulin
committed
Dec 4, 2024
1 parent
69471e8
commit 58f87e5
Showing
2 changed files
with
49 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* NullApplicator.php | ||
* | ||
* Build tor mocking and testing purposes. | ||
* | ||
* @package Municipio\Customizer\Applicators\Types | ||
*/ | ||
|
||
namespace Municipio\Customizer\Applicators\Types; | ||
|
||
use Municipio\Customizer\Applicators\ApplicatorInterface; | ||
|
||
class NullApplicator implements ApplicatorInterface | ||
{ | ||
// Return a fixed key for the NullApplicator | ||
public function getKey(): string | ||
{ | ||
return 'null_applicator'; | ||
} | ||
|
||
// Return a simple empty array for getData() | ||
public function getData(): array|string | ||
{ | ||
return []; // No data to return | ||
} | ||
|
||
// Fake method to satisfy the interface, no actual data is applied | ||
public function applyData(array|object $data) | ||
{ | ||
// No-op: Do nothing with the data for the null implementation | ||
} | ||
} |
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