You are here

class Twig_Markup in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Markup.php \Twig_Markup

Marks a content as safe.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_Markup

File

vendor/Twig/Markup.php, line 17

View source
class Twig_Markup implements Countable {
  protected $content;
  protected $charset;
  public function __construct($content, $charset) {
    $this->content = (string) $content;
    $this->charset = $charset;
  }
  public function __toString() {
    return $this->content;
  }
  public function count() {
    return function_exists('mb_get_info') ? mb_strlen($this->content, $this->charset) : strlen($this->content);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_Markup::$charset protected property
Twig_Markup::$content protected property
Twig_Markup::count public function
Twig_Markup::__construct public function
Twig_Markup::__toString public function