1 | <?php |
||
10 | class ArgumentValueProvider |
||
11 | { |
||
12 | /** @var \Faker\Generator */ |
||
13 | protected $faker; |
||
14 | |||
15 | public function __construct(Generator $faker) |
||
19 | |||
20 | /** |
||
21 | * @param string $mailableClass |
||
22 | * @param string $argumentName |
||
23 | * @param string $argumentType |
||
24 | * @param string|null $defaultValue |
||
25 | * |
||
26 | * @return mixed |
||
27 | * @throws \Spatie\MailableTest\Exceptions\CouldNotDetermineValue |
||
28 | */ |
||
29 | public function getValue(string $mailableClass, string $argumentName, string $argumentType = '', $defaultValue = null) |
||
56 | |||
57 | /** |
||
58 | * @param \Illuminate\Database\Eloquent\Model $model |
||
59 | * @param string|int|null $id |
||
60 | * |
||
61 | * @return \Illuminate\Database\Eloquent\Model |
||
62 | * @throws \Spatie\MailableTest\Exceptions\CouldNotDetermineValue |
||
63 | */ |
||
64 | protected function getModelInstance(Model $model, $id): Model |
||
74 | } |
||
75 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.