blob: e1be6fefac16fe45670e99c0c023746d961af106 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001<?php
2
3namespace Illuminate\Contracts\Support;
4
5interface CanBeEscapedWhenCastToString
6{
7 /**
8 * Indicate that the object's string representation should be escaped when __toString is invoked.
9 *
10 * @param bool $escape
11 * @return $this
12 */
13 public function escapeWhenCastingToString($escape = true);
14}