[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/wact/src/compiler/parser/ -> WactSourceLocation.class.php (source)

   1  <?php
   2  /*
   3   * Limb PHP Framework
   4   *
   5   * @link http://limb-project.com 
   6   * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
   7   * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
   8   */
   9  
  10  /**

  11   * class WactSourceLocation.

  12   *

  13   * @package wact

  14   * @version $Id: WactSourceLocation.class.php 5945 2007-06-06 08:31:43Z pachanga $

  15   */
  16  class WactSourceLocation
  17  {
  18    public $file;
  19    public $line;
  20  
  21    function __construct($file = null, $line = null)
  22    {
  23      if($file)
  24        $this->file = $file;
  25      else
  26        $this->file = 'unknown file';
  27  
  28      if($line)
  29        $this->line = $line;
  30      else
  31        $this->line = 'unknown line';
  32    }
  33  
  34    function getFile()
  35    {
  36      return $this->file;
  37    }
  38  
  39    function getLine()
  40    {
  41      return $this->line;
  42    }
  43  }
  44  ?>


Generated: Sat Aug 30 04:38:32 2008 Cross-referenced by PHPXref 0.7