Skip to content

Commit b7efa88

Browse files
committed
naming
1 parent 86d9427 commit b7efa88

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Collection/Complex/FullName.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use MichaelRubel\ValueObjects\ValueObject;
1010

1111
/**
12-
* @method static static make(string $taxNumber)
12+
* @method static static make(string $name)
1313
*/
1414
class FullName extends ValueObject
1515
{
@@ -21,13 +21,13 @@ class FullName extends ValueObject
2121
/**
2222
* Create a new instance of the value object.
2323
*
24-
* @param string|null $fullName
24+
* @param string|null $name
2525
*/
26-
public function __construct(protected ?string $fullName)
26+
public function __construct(protected ?string $name)
2727
{
28-
$this->fullName = format(FullNameFormatter::class, $this->fullName);
28+
$this->name = format(FullNameFormatter::class, $this->name);
2929

30-
$this->split = str($this->fullName)->split('/\s/');
30+
$this->split = str($this->name)->split('/\s/');
3131
}
3232

3333
/**
@@ -37,7 +37,7 @@ public function __construct(protected ?string $fullName)
3737
*/
3838
public function fullName(): string
3939
{
40-
return (string) $this->fullName;
40+
return (string) $this->name;
4141
}
4242

4343
/**

0 commit comments

Comments
 (0)