ConstraintTraitForV8.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 ConstraintTraitForV8
  15. {
  16. use ConstraintLogicTrait;
  17. /**
  18. * @return bool|null
  19. */
  20. public function evaluate($other, $description = '', $returnResult = false)
  21. {
  22. return $this->doEvaluate($other, $description, $returnResult);
  23. }
  24. public function count(): int
  25. {
  26. return $this->doCount();
  27. }
  28. public function toString(): string
  29. {
  30. return $this->doToString();
  31. }
  32. protected function additionalFailureDescription($other): string
  33. {
  34. return $this->doAdditionalFailureDescription($other);
  35. }
  36. protected function failureDescription($other): string
  37. {
  38. return $this->doFailureDescription($other);
  39. }
  40. protected function matches($other): bool
  41. {
  42. return $this->doMatches($other);
  43. }
  44. }