ConstraintTraitForV9.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\PhpUnit\Legacy;
  11. /**
  12. * @internal
  13. */
  14. trait ConstraintTraitForV9
  15. {
  16. use ConstraintLogicTrait;
  17. public function evaluate($other, string $description = '', bool $returnResult = false): ?bool
  18. {
  19. return $this->doEvaluate($other, $description, $returnResult);
  20. }
  21. public function count(): int
  22. {
  23. return $this->doCount();
  24. }
  25. public function toString(): string
  26. {
  27. return $this->doToString();
  28. }
  29. protected function additionalFailureDescription($other): string
  30. {
  31. return $this->doAdditionalFailureDescription($other);
  32. }
  33. protected function failureDescription($other): string
  34. {
  35. return $this->doFailureDescription($other);
  36. }
  37. protected function matches($other): bool
  38. {
  39. return $this->doMatches($other);
  40. }
  41. }