/usr/share/php/TokenReflection/Broker/Backend.php is in php-tokenreflection 1.4.0-2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | <?php
/**
* PHP Token Reflection
*
* Version 1.4.0
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this library in the file LICENSE.md.
*
* @author Ondřej Nešpor
* @author Jaroslav Hanslík
*/
namespace TokenReflection\Broker;
use TokenReflection;
/**
* Broker backend interface.
*
* Defines methods for storing and retrieving reflection objects.
*/
interface Backend
{
/**
* Identifier of the tokenized classes list.
*
* @var integer
*/
const TOKENIZED_CLASSES = 1;
/**
* Identifier of the internal classes list.
*
* @var integer
*/
const INTERNAL_CLASSES = 2;
/**
* Identifier of the nonexisten classes list.
*
* @var integer
*/
const NONEXISTENT_CLASSES = 4;
/**
* Returns if there was such namespace processed (FQN expected).
*
* @param string $namespaceName Namespace name
* @return boolean
*/
public function hasNamespace($namespaceName);
/**
* Returns a reflection object of the given namespace.
*
* @param string $namespaceName Namespace name
* @return \TokenReflection\IReflectionNamespace|null
*/
public function getNamespace($namespaceName);
/**
* Returns if there was such class processed (FQN expected).
*
* @param string $className Class name
* @return boolean
*/
public function hasClass($className);
/**
* Returns a reflection object of the given class (FQN expected).
*
* @param string $className CLass bame
* @return \TokenReflection\IReflectionClass|null
*/
public function getClass($className);
/**
* Returns all classes from all namespaces.
*
* @param integer $type Returned class types (multiple values may be OR-ed)
* @return array
*/
public function getClasses($type = Backend::TOKENIZED_CLASSES);
/**
* Returns if there was such constant processed (FQN expected).
*
* @param string $constantName Constant name
* @return boolean
*/
public function hasConstant($constantName);
/**
* Returns a reflection object of a constant (FQN expected).
*
* @param string $constantName Constant name
* @return \TokenReflection\IReflectionConstant|null
*/
public function getConstant($constantName);
/**
* Returns all constants from all namespaces.
*
* @return array
*/
public function getConstants();
/**
* Returns if there was such function processed (FQN expected).
*
* @param string $functionName Function name
* @return boolean
*/
public function hasFunction($functionName);
/**
* Returns a reflection object of a function (FQN expected).
*
* @param string $functionName Function name
* @return \TokenReflection\IReflectionFunction|null
*/
public function getFunction($functionName);
/**
* Returns all functions from all namespaces.
*
* @return array
*/
public function getFunctions();
/**
* Returns if the given file was already processed.
*
* @param string $fileName File name
* @return boolean
*/
public function isFileProcessed($fileName);
/**
* Returns if a file with the given filename has been processed.
*
* @param string $fileName File name
* @return boolean
*/
public function hasFile($fileName);
/**
* Returns a file reflection.
*
* @param string $fileName File name
* @return \TokenReflection\ReflectionFile
* @throws \TokenReflection\Exception\RuntimeException If the requested file has not been processed
*/
public function getFile($fileName);
/**
* Returns file reflections.
*
* @return array
*/
public function getFiles();
/**
* Returns an array of tokens for a particular file.
*
* @param string $fileName File name
* @return \TokenReflection\Stream\StreamBase
*/
public function getFileTokens($fileName);
/**
* Adds a file to the backend storage.
*
* @param \TokenReflection\Stream\StreamBase $tokenStream Token stream
* @param \TokenReflection\ReflectionFile $file File reflection object
* @return \TokenReflection\Broker\Backend
*/
public function addFile(TokenReflection\Stream\StreamBase $tokenStream, TokenReflection\ReflectionFile $file);
/**
* Sets the reflection broker instance.
*
* @param \TokenReflection\Broker $broker Reflection broker
* @return \TokenReflection\Broker\Backend
*/
public function setBroker(TokenReflection\Broker $broker);
/**
* Returns the reflection broker instance.
*
* @return \TokenReflection\Broker $broker Reflection broker
*/
public function getBroker();
/**
* Sets if token streams are stored in the backend.
*
* @param boolean $store
* @return \TokenReflection\Broker\Backend
*/
public function setStoringTokenStreams($store);
/**
* Returns if token streams are stored in the backend.
*
* @return boolean
*/
public function getStoringTokenStreams();
}
|