7
7
use CsrDelft \entity \profiel \Profiel ;
8
8
use CsrDelft \model \entity \LidStatus ;
9
9
use CsrDelft \model \entity \profiel \ProfielLogTextEntry ;
10
+ use DateTimeImmutable ;
10
11
use Faker \Generator ;
11
12
12
13
class ProfielFixtureUtil
@@ -18,7 +19,7 @@ class ProfielFixtureUtil
18
19
* @param string|null $voornaam
19
20
* @param string|null $achternaam
20
21
* @param string $voorletters
21
- * @return void
22
+ * @return Profiel
22
23
*/
23
24
public static function maakProfiel (
24
25
Generator $ faker ,
@@ -52,32 +53,32 @@ public static function maakProfiel(
52
53
)
53
54
);
54
55
$ profiel ->tussenvoegsel = '' ;
55
- $ profiel ->achternaam = $ achternaam ?? $ faker ->lastName ;
56
+ $ profiel ->achternaam = $ achternaam ?? $ faker ->lastName () ;
56
57
$ profiel ->postfix = '' ;
57
58
$ profiel ->nickname = $ nickname ?? '' ;
58
59
$ profiel ->duckname = '' ;
59
- $ profiel ->gebdatum = $ faker ->dateTimeBetween ('-25 years ' , '-18 years ' );
60
+ $ profiel ->gebdatum = DateTimeImmutable:: createFromMutable ( $ faker ->dateTimeBetween ('-25 years ' , '-18 years ' ) );
60
61
$ profiel ->sterfdatum = null ;
61
62
$ profiel ->lengte = $ faker ->numberBetween (160 , 210 );
62
63
// getrouwd
63
64
$ profiel ->echtgenoot = null ;
64
65
$ profiel ->adresseringechtpaar = null ;
65
66
$ profiel ->ontvangtcontactueel = OntvangtContactueel::Nee ();
66
67
// adres
67
- $ profiel ->adres = $ faker ->streetAddress ;
68
- $ profiel ->postcode = $ faker ->postcode ;
69
- $ profiel ->woonplaats = $ faker ->city ;
70
- $ profiel ->land = $ faker ->country ;
71
- $ profiel ->telefoon = $ faker ->e164PhoneNumber ; // We hebben strenge telefoonnummer eisen
72
- $ profiel ->o_adres = $ faker ->streetAddress ;
73
- $ profiel ->o_postcode = $ faker ->postcode ;
74
- $ profiel ->o_woonplaats = $ faker ->city ;
75
- $ profiel ->o_land = $ faker ->country ;
76
- $ profiel ->o_telefoon = $ faker ->e164PhoneNumber ;
68
+ $ profiel ->adres = $ faker ->streetAddress () ;
69
+ $ profiel ->postcode = $ faker ->postcode () ;
70
+ $ profiel ->woonplaats = $ faker ->city () ;
71
+ $ profiel ->land = $ faker ->country () ;
72
+ $ profiel ->telefoon = $ faker ->e164PhoneNumber () ; // We hebben strenge telefoonnummer eisen
73
+ $ profiel ->o_adres = $ faker ->streetAddress () ;
74
+ $ profiel ->o_postcode = $ faker ->postcode () ;
75
+ $ profiel ->o_woonplaats = $ faker ->city () ;
76
+ $ profiel ->o_land = $ faker ->country () ;
77
+ $ profiel ->o_telefoon = $ faker ->e164PhoneNumber () ;
77
78
// contact
78
- $ profiel ->email = $ faker ->email ;
79
- $ profiel ->sec_email = $ faker ->email ;
80
- $ profiel ->mobiel = $ faker ->e164PhoneNumber ;
79
+ $ profiel ->email = $ faker ->email () ;
80
+ $ profiel ->sec_email = $ faker ->email () ;
81
+ $ profiel ->mobiel = $ faker ->e164PhoneNumber () ;
81
82
$ profiel ->linkedin = null ;
82
83
$ profiel ->website = null ;
83
84
// studie
0 commit comments