Returns the name of the source file.
public getSourceFile ( ) : string | ||
리턴 | string |
/** * Constructs a new missing value exception. * * @param \PDepend\Source\Tokenizer\Tokenizer $tokenizer */ public function __construct(Tokenizer $tokenizer) { // Get wrong token $token = $tokenizer->next(); // The parser must take care for this assert($token instanceof Token); $message = sprintf('Missing default value on line: %d, col: %d, file: %s.', $token->startLine, $token->startColumn, $tokenizer->getSourceFile()); parent::__construct($message); }
/** * Constructs a new end of token stream exception. * * @param \PDepend\Source\Tokenizer\Tokenizer $tokenizer */ public function __construct(Tokenizer $tokenizer) { parent::__construct(sprintf('Unexpected end of token stream in file: %s.', $tokenizer->getSourceFile())); }