/** * Set the Escaper instance * * If null, resets the instance * * @param null|Escaper $escaper */ public static function setEscaper(Escaper $escaper = null) { static::$escaper = $escaper; }
/** * * Sets the static singleton escaper instance. * * @param Escaper $escaper The Escaper to use as the singleton. * * @return null * */ public static function setStatic(Escaper $escaper) { static::$escaper = $escaper; }