* \endcode * * @param array $attributes Additional attributes to be added to the input * @return string the HTML snippet containing the input element */ public static function tokenTag(array $attributes = []) { $attributes = array_merge($attributes, [ 'name' => self::TOKEN, 'value' => self::token(), ]); return sprintf( '', arrayToHtmlAttributes($attributes) ); } }