Introduced Context and Location, and adapted Collection and ReturnTag accordingly.

This commit is contained in:
Vasil Rangelov
2012-11-21 15:55:10 +02:00
parent 9da4a65065
commit 99054d341f
17 changed files with 400 additions and 245 deletions
@@ -0,0 +1,53 @@
<?php
/**
* phpDocumentor
*
* PHP Version 5.3
*
* @author Vasil Rangelov <[email protected]>
* @copyright 2010-2011 Mike van Riel / Naenius (http://www.naenius.com)
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
namespace phpDocumentor\Reflection\DocBlock;
/**
* The location a DocBlock occurs within a file.
*
* @author Vasil Rangelov <[email protected]>
* @license http://www.opensource.org/licenses/mit-license.php MIT
* @link http://phpdoc.org
*/
class Location
{
/** @var int Line where the DocBlock text starts. */
protected $line_number = 0;
/** @var int Column where the DocBlock text starts. */
protected $column_number = 0;
public function __construct(
$line_number = 0,
$column_number = 0
) {
$this->line_number = (int)$line_number;
$this->column_number = (int)$column_number;
}
/**
* @return int Line where the DocBlock text starts.
*/
public function getLineNumber()
{
return $this->line_number;
}
/**
* @return int Column where the DocBlock text starts.
*/
public function getColumnNumber()
{
return $this->column_number;
}
}