None::create()
Source
File: vendor/phpoption/phpoption/src/PhpOption/None.php
public static function create()
{
if (null === self::$instance) {
self::$instance = new self();
}
return self::$instance;
}
Related
Uses
Uses | Description |
---|---|
vendor/phpoption/phpoption/src/PhpOption/None.php: None::__construct() |
Used By
Used By | Description |
---|---|
vendor/vlucas/phpdotenv/src/Regex/Success.php: Success::error() |
Get the error option value. |
vendor/vlucas/phpdotenv/src/Regex/Error.php: Error::success() |
Get the success option value. |
vendor/vlucas/phpdotenv/src/Environment/Adapter/ServerConstAdapter.php: ServerConstAdapter::get() |
Get an environment variable, if it exists. |
vendor/vlucas/phpdotenv/src/Environment/Adapter/EnvConstAdapter.php: EnvConstAdapter::get() |
Get an environment variable, if it exists. |
vendor/vlucas/phpdotenv/src/Environment/Adapter/ApacheAdapter.php: ApacheAdapter::get() |
Get an environment variable, if it exists. |
vendor/vlucas/phpdotenv/src/Environment/Adapter/ArrayAdapter.php: ArrayAdapter::get() |
Get an environment variable, if it exists. |
vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php: LazyOptionTest::testCallbackReturnsNull() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/LazyOptionTest.php: LazyOptionTest::testOrElse() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/EnsureTest.php: EnsureTest::testOptionReturnedFromClosure() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testForeach() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::setUp() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php: OptionTest::testFromArraysValue() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php: OptionTest::testOrElseWithNoneAsFirst() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/OptionTest.php: OptionTest::testOrElseWithMultipleAlternatives() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php: Repository::getLastRegisteredUsername() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php: Repository::getUser() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/PerformanceTest.php: PhpOptionRepo::findMaybe() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testGet() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testGetOrElse() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testGetOrCall() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testGetOrThrow() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testIsEmpty() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/NoneTest.php: NoneTest::testOrElse() | |
vendor/phpoption/phpoption/src/PhpOption/Some.php: Some::filter() | |
vendor/phpoption/phpoption/src/PhpOption/Some.php: Some::filterNot() | |
vendor/phpoption/phpoption/src/PhpOption/Some.php: Some::select() | |
vendor/phpoption/phpoption/src/PhpOption/Some.php: Some::reject() | |
vendor/phpoption/phpoption/tests/PhpOption/Tests/SomeTest.php: SomeTest::testOrElse() | |
vendor/phpoption/phpoption/src/PhpOption/Option.php: Option::fromValue() |
Creates an option given a return value. |
vendor/phpoption/phpoption/src/PhpOption/Option.php: Option::fromArraysValue() |
Creates an option from an array’s value. |
vendor/phpoption/phpoption/src/PhpOption/Option.php: Option::fromReturn() |
Creates a lazy-option with the given callback. |