Overview

Namespaces

  • Pharborist
    • Constants
    • ControlStructures
    • Exceptions
    • Functions
    • Generators
    • Namespaces
    • Objects
    • Operators
    • Types
    • Variables

Classes

  • Pharborist\Variables\CompoundVariableNode
  • Pharborist\Variables\GlobalStatementNode
  • Pharborist\Variables\ReferenceVariableNode
  • Pharborist\Variables\StaticVariableNode
  • Pharborist\Variables\StaticVariableStatementNode
  • Pharborist\Variables\VariableNode
  • Pharborist\Variables\VariableVariableNode

Interfaces

  • Pharborist\Variables\VariableExpressionNode
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Pharborist;
 3: 
 4: /**
 5:  * Position in source.
 6:  */
 7: class SourcePosition {
 8:   /**
 9:    * The line number.
10:    * @var int
11:    */
12:   protected $lineNo;
13: 
14:   /**
15:    * The column number.
16:    * @var int
17:    */
18:   protected $colNo;
19: 
20:   /**
21:    * Constructor.
22:    *
23:    * @param integer $line_no
24:    * @param integer $col_no
25:    */
26:   public function __construct($line_no, $col_no) {
27:     $this->lineNo = $line_no;
28:     $this->colNo = $col_no;
29:   }
30: 
31:   /**
32:    * Get the line number.
33:    * @return int
34:    */
35:   public function getLineNumber() {
36:     return $this->lineNo;
37:   }
38: 
39:   /**
40:    * Get the column number.
41:    * @return int
42:    */
43:   public function getColumnNumber() {
44:     return $this->colNo;
45:   }
46: }
47: 
Pharborist API documentation generated by ApiGen