Base.php 585 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. namespace TestApp\Utility;
  4. use Cake\Utility\MergeVariablesTrait;
  5. class Base
  6. {
  7. use MergeVariablesTrait;
  8. public $hasBoolean = false;
  9. public $listProperty = ['One'];
  10. public $assocProperty = ['Red'];
  11. /**
  12. * @param string[] $properties An array of properties and the merge strategy for them.
  13. * @param array<string, mixed> $options The options to use when merging properties.
  14. */
  15. public function mergeVars(array $properties, array $options = []): void
  16. {
  17. $this->_mergeVars($properties, $options);
  18. }
  19. }