![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/rentpix.corals.io/vendor/orchestra/testbench-core/src/Attributes/ |
<?php namespace Orchestra\Testbench\Attributes; use Attribute; use Orchestra\Testbench\Contracts\Attributes\Resolvable as ResolvableContract; use Orchestra\Testbench\Contracts\Attributes\TestingFeature; #[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)] final class Define implements ResolvableContract { /** * Construct a new attribute. * * @param string $group * @param string $method */ public function __construct( public string $group, public string $method ) { // } /** * Resolve the actual attribute class. * * @return \Orchestra\Testbench\Contracts\Attributes\TestingFeature|null */ public function resolve(): ?TestingFeature { switch (strtolower($this->group)) { case 'env': return new DefineEnvironment($this->method); case 'db': return new DefineDatabase($this->method); case 'route': return new DefineRoute($this->method); default: return null; } } }