src/Recipient/RecipientFactory.php
public static function createContactFromAttributes(
        string $firstName,
        string $phoneNumber,
        ?string $lastName = null,
        ?string $title = null,
        ?string $organization = null,
        ?string $email = null,
        ?string $notes = null
    ) : Contact {
        return new Contact(
            $firstName,
            $phoneNumber,
            $lastName,
            $title,
            $organization,
            $email,
            $notes
        );
    }
public static function createContactFromAttributes(
        string $firstName,
        string $phoneNumber,
        ?string $lastName = null,
        ?string $title = null,
        ?string $organization = null,
        ?string $email = null,
        ?string $notes = null
    ) : Contact {
        return new Contact(
            $firstName,
            $phoneNumber,
            $lastName,
            $title,
            $organization,
            $email,
            $notes
        );
    }
public static function createContactFromAttributes ( string $ firstName , string $ phoneNumber , ? string $ lastName = null , ? string $ title = null , ? string $ organization = null , ? string $ email = null , ? string $ notes = null ) : Contact { return new Contact ( $ firstName , $ phoneNumber , $ lastName , $ title , $ organization , $ email , $ notes ) ; }
Creates a Contact using the parameters given.
@param string      $firstName    The first name of the contact in question.
@param string      $phoneNumber  Contact phone number: with country code and without spaces and dashes.
@param string|null $lastName     Contact last name.
@param string|null $title        Contact title.
@param string|null $organization Contact company or other organization.
@param string|null $email        Contact email address.
@param string|null $notes        Contact notes.
@return Contact
Creates a Contact using the parameters given .