File Manager Lite
Dir:
/home/u540325668/domains/mkjsindia.org/public_html/vendor/psy/psysh/src/TabCompletion/Matcher
Upload
[..]
AbstractContextAwareMatcher.php (1.29 KB)
Edit
Rename
Del
AbstractDefaultParametersMatcher.php (2.03 KB)
Edit
Rename
Del
AbstractMatcher.php (4.84 KB)
Edit
Rename
Del
ClassAttributesMatcher.php (2.2 KB)
Edit
Rename
Del
ClassMethodDefaultParametersMatcher.php (1.6 KB)
Edit
Rename
Del
ClassMethodsMatcher.php (2.18 KB)
Edit
Rename
Del
ClassNamesMatcher.php (2.34 KB)
Edit
Rename
Del
CommandsMatcher.php (2.47 KB)
Edit
Rename
Del
ConstantsMatcher.php (1.32 KB)
Edit
Rename
Del
FunctionsMatcher.php (1.37 KB)
Edit
Rename
Del
KeywordsMatcher.php (2.04 KB)
Edit
Rename
Del
MongoDatabaseMatcher.php (1.64 KB)
Edit
Rename
Del
ObjectMethodDefaultParametersMatcher.php (1.74 KB)
Edit
Rename
Del
ObjectMethodsMatcher.php (2.02 KB)
Edit
Rename
Del
VariablesMatcher.php (1.22 KB)
Edit
Rename
Del
Edit: AbstractContextAwareMatcher.php
<?php /* * This file is part of Psy Shell. * * (c) 2012-2018 Justin Hileman * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Psy\TabCompletion\Matcher; use Psy\Context; use Psy\ContextAware; /** * An abstract tab completion Matcher which implements ContextAware. * * The AutoCompleter service will inject a Context instance into all * ContextAware Matchers. * * @author Marc Garcia <markcial@gmail.com> */ abstract class AbstractContextAwareMatcher extends AbstractMatcher implements ContextAware { /** * Context instance (for ContextAware interface). * * @var Context */ protected $context; /** * ContextAware interface. * * @param Context $context */ public function setContext(Context $context) { $this->context = $context; } /** * Get a Context variable by name. * * @param string $var Variable name * * @return mixed */ protected function getVariable($var) { return $this->context->get($var); } /** * Get all variables in the current Context. * * @return array */ protected function getVariables() { return $this->context->getAll(); } }
Simpan