本文整理汇总了PHP中Webmozart\Expression\Expr::true方法的典型用法代码示例。如果您正苦于以下问题:PHP Expr::true方法的具体用法?PHP Expr::true怎么用?PHP Expr::true使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Webmozart\Expression\Expr
的用法示例。
在下文中一共展示了Expr::true方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: clearRootInstallerDescriptors
/**
* {@inheritdoc}
*/
public function clearRootInstallerDescriptors()
{
$this->removeRootInstallerDescriptors(Expr::true());
}
示例2: orTrue
public function orTrue()
{
return Expr::true();
}
示例3: clearServers
/**
* {@inheritdoc}
*/
public function clearServers()
{
$this->removeServers(Expr::true());
}
示例4: clearRootBindings
/**
* {@inheritdoc}
*/
public function clearRootBindings()
{
$this->removeRootBindings(Expr::true());
}
示例5: clearRootPathMappings
/**
* {@inheritdoc}
*/
public function clearRootPathMappings()
{
$this->removeRootPathMappings(Expr::true());
}
示例6: testAndXIgnoresTrue
public function testAndXIgnoresTrue()
{
$conjunction1 = new AndX(array($notNull = new Same('10')));
$conjunction2 = $conjunction1->andX(Expr::true());
$this->assertSame($conjunction1, $conjunction2);
}
示例7: clearPluginClasses
/**
* {@inheritdoc}
*/
public function clearPluginClasses()
{
$this->removePluginClasses(Expr::true());
}
示例8: getSelectedPackages
/**
* Returns the packages that should be displayed for the given console
* arguments.
*
* @param Args $args The console arguments.
*
* @return PackageCollection The packages.
*/
private function getSelectedPackages(Args $args)
{
$states = $this->getSelectedStates($args);
$expr = Expr::true();
$envs = array();
if ($states !== PackageState::all()) {
$expr = $expr->andMethod('getState', Expr::in($states));
}
if ($args->isOptionSet('installer')) {
$expr = $expr->andMethod('getInstallInfo', Expr::method('getInstallerName', Expr::same($args->getOption('installer'))));
}
if ($args->isOptionSet('prod')) {
$envs[] = Environment::PROD;
}
if ($args->isOptionSet('dev')) {
$envs[] = Environment::DEV;
}
if (count($envs) > 0) {
$expr = $expr->andMethod('getInstallInfo', Expr::method('getEnvironment', Expr::in($envs)));
}
return $this->packageManager->findPackages($expr);
}
示例9: clearModules
/**
* {@inheritdoc}
*/
public function clearModules()
{
$this->removeModules(Expr::true());
}
示例10: all
private function all()
{
return Expr::true();
}
示例11: getAssetMappings
/**
* {@inheritdoc}
*/
public function getAssetMappings()
{
return $this->findAssetMappings(Expr::true());
}
示例12: getSelectedPackages
/**
* Returns the packages that should be displayed for the given console
* arguments.
*
* @param Args $args The console arguments.
*
* @return PackageCollection The packages.
*/
private function getSelectedPackages(Args $args)
{
$states = $this->getSelectedStates($args);
$expr = Expr::true();
if ($states != PackageState::all()) {
$expr = $expr->andIn($states, Package::STATE);
}
if ($args->isOptionSet('installer')) {
$expr = $expr->andSame($args->getOption('installer'), Package::INSTALLER);
}
return $this->packageManager->findPackages($expr);
}
示例13: clearConfigKeys
/**
* {@inheritdoc}
*/
public function clearConfigKeys()
{
$this->removeConfigKeys(Expr::true());
}
示例14: clearPackages
/**
* {@inheritdoc}
*/
public function clearPackages()
{
$this->removePackages(Expr::true());
}
示例15: testAndXIgnoresTrue
public function testAndXIgnoresTrue()
{
$literal = new TestLiteral('value');
$conjunction = $literal->andX(Expr::true());
$this->assertSame($literal, $conjunction);
}