[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/mustache/src/Mustache/Exception/ -> SyntaxException.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of Mustache.php.
   5   *
   6   * (c) 2010-2015 Justin Hileman
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  /**
  13   * Mustache syntax exception.
  14   */
  15  class Mustache_Exception_SyntaxException extends LogicException implements Mustache_Exception
  16  {
  17      protected $token;
  18  
  19      /**
  20       * @param string $msg
  21       * @param array  $token
  22       */
  23      public function __construct($msg, array $token)
  24      {
  25          $this->token = $token;
  26          parent::__construct($msg);
  27      }
  28  
  29      /**
  30       * @return array
  31       */
  32      public function getToken()
  33      {
  34          return $this->token;
  35      }
  36  }


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1