File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 9
9
use MichaelRubel \ValueObjects \ValueObject ;
10
10
11
11
/**
12
- * @method static static make(string $taxNumber )
12
+ * @method static static make(string $name )
13
13
*/
14
14
class FullName extends ValueObject
15
15
{
@@ -21,13 +21,13 @@ class FullName extends ValueObject
21
21
/**
22
22
* Create a new instance of the value object.
23
23
*
24
- * @param string|null $fullName
24
+ * @param string|null $name
25
25
*/
26
- public function __construct (protected ?string $ fullName )
26
+ public function __construct (protected ?string $ name )
27
27
{
28
- $ this ->fullName = format (FullNameFormatter::class, $ this ->fullName );
28
+ $ this ->name = format (FullNameFormatter::class, $ this ->name );
29
29
30
- $ this ->split = str ($ this ->fullName )->split ('/\s/ ' );
30
+ $ this ->split = str ($ this ->name )->split ('/\s/ ' );
31
31
}
32
32
33
33
/**
@@ -37,7 +37,7 @@ public function __construct(protected ?string $fullName)
37
37
*/
38
38
public function fullName (): string
39
39
{
40
- return (string ) $ this ->fullName ;
40
+ return (string ) $ this ->name ;
41
41
}
42
42
43
43
/**
You can’t perform that action at this time.
0 commit comments