pax_global_header00006660000000000000000000000064131555476530014530gustar00rootroot0000000000000052 comment=21bdeb5f65d7ebf9f43b1b25d404f87deab5bfb6 ReflectionCommon-1.0.1/000077500000000000000000000000001315554765300147725ustar00rootroot00000000000000ReflectionCommon-1.0.1/.travis.yml000066400000000000000000000012551315554765300171060ustar00rootroot00000000000000language: php php: - 5.5 - 5.6 - 7.0 - 7.1 - hhvm - nightly matrix: allow_failures: - php: - hhvm - nightly cache: directories: - $HOME/.composer/cache script: - vendor/bin/phpunit --coverage-clover=coverage.clover -v - composer update --no-interaction --prefer-source - vendor/bin/phpunit -v before_script: - composer install --no-interaction after_script: - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi notifications: irc: "irc.freenode.org#phpdocumentor" email: - me@mikevanriel.com - ashnazg@php.net ReflectionCommon-1.0.1/LICENSE000066400000000000000000000020711315554765300157770ustar00rootroot00000000000000The MIT License (MIT) Copyright (c) 2015 phpDocumentor Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ReflectionCommon-1.0.1/README.md000066400000000000000000000002431315554765300162500ustar00rootroot00000000000000# ReflectionCommon [![Build Status](https://travis-ci.org/phpDocumentor/ReflectionCommon.svg?branch=master)](https://travis-ci.org/phpDocumentor/ReflectionCommon) ReflectionCommon-1.0.1/composer.json000066400000000000000000000013331315554765300175140ustar00rootroot00000000000000{ "name": "phpdocumentor/reflection-common", "keywords": ["phpdoc", "phpDocumentor", "reflection", "static analysis", "FQSEN"], "homepage": "http://www.phpdoc.org", "description": "Common reflection classes used by phpdocumentor to reflect the code structure", "license": "MIT", "authors": [ { "name": "Jaap van Otterdijk", "email": "opensource@ijaap.nl" } ], "require": { "php": ">=5.5" }, "autoload" : { "psr-4" : { "phpDocumentor\\Reflection\\": ["src"] } }, "require-dev": { "phpunit/phpunit": "^4.6" }, "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } } } ReflectionCommon-1.0.1/src/000077500000000000000000000000001315554765300155615ustar00rootroot00000000000000ReflectionCommon-1.0.1/src/Element.php000066400000000000000000000010611315554765300176610ustar00rootroot00000000000000 * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ namespace phpDocumentor\Reflection; /** * Interface for files processed by the ProjectFactory */ interface File { /** * Returns the content of the file as a string. * * @return string */ public function getContents(); /** * Returns md5 hash of the file. * * @return string */ public function md5(); /** * Returns an relative path to the file. * * @return string */ public function path(); } ReflectionCommon-1.0.1/src/Fqsen.php000066400000000000000000000034141315554765300173500ustar00rootroot00000000000000fqsen = $fqsen; if (isset($matches[2])) { $this->name = $matches[2]; } else { $matches = explode('\\', $fqsen); $this->name = trim(end($matches), '()'); } } /** * converts this class to string. * * @return string */ public function __toString() { return $this->fqsen; } /** * Returns the name of the element without path. * * @return string */ public function getName() { return $this->name; } } ReflectionCommon-1.0.1/src/Location.php000066400000000000000000000025101315554765300200400ustar00rootroot00000000000000 * @license http://www.opensource.org/licenses/mit-license.php MIT * @link http://phpdoc.org */ namespace phpDocumentor\Reflection; /** * The location where an element occurs within a file. */ final class Location { /** @var int */ private $lineNumber = 0; /** @var int */ private $columnNumber = 0; /** * Initializes the location for an element using its line number in the file and optionally the column number. * * @param int $lineNumber * @param int $columnNumber */ public function __construct($lineNumber, $columnNumber = 0) { $this->lineNumber = $lineNumber; $this->columnNumber = $columnNumber; } /** * Returns the line number that is covered by this location. * * @return integer */ public function getLineNumber() { return $this->lineNumber; } /** * Returns the column number (character position on a line) for this location object. * * @return integer */ public function getColumnNumber() { return $this->columnNumber; } } ReflectionCommon-1.0.1/src/Project.php000066400000000000000000000010251315554765300176760ustar00rootroot00000000000000