芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/nunomaduro/larastan/src/Types/ViewStringType.php
exists($string) test is a valid view-string type. */ class ViewStringType extends StringType { public function describe(\PHPStan\Type\VerbosityLevel $level): string { return 'view-string'; } public function accepts(Type $type, bool $strictTypes): TrinaryLogic { if ($type instanceof CompoundType) { return $type->isAcceptedBy($this, $strictTypes); } if ($type instanceof ConstantStringType) { /** @var \Illuminate\View\Factory $view */ $view = view(); return TrinaryLogic::createFromBoolean($view->exists($type->getValue())); } if ($type instanceof self) { return TrinaryLogic::createYes(); } if ($type instanceof StringType) { return TrinaryLogic::createMaybe(); } return TrinaryLogic::createNo(); } public function isSuperTypeOf(Type $type): TrinaryLogic { if ($type instanceof ConstantStringType) { /** @var \Illuminate\View\Factory $view */ $view = view(); return TrinaryLogic::createFromBoolean($view->exists($type->getValue())); } if ($type instanceof self) { return TrinaryLogic::createYes(); } if ($type instanceof parent) { return TrinaryLogic::createMaybe(); } if ($type instanceof CompoundType) { return $type->isSubTypeOf($this); } return TrinaryLogic::createNo(); } /** * @param mixed[] $properties * @return Type */ public static function __set_state(array $properties): Type { return new self(); } }