public function setMember(string $email, ?string $role = null): array
    {
        $this->members[$email] = $role;

        return $this->members;
    }
public function setMember(string $email, ?string $role = null): array
    {
        $this->members[$email] = $role;

        return $this->members;
    }
public function setMember ( string $ email , ? string $ role = null ) : array { $ this -> members [ $ email ] = $ role ; return $ this -> members ; }
Add developer or modify developer role in a membership.

@param string $email
Developer email address.
@param string|null $role
Developer role.

@return array
An associate array where developer email addresses are the keys and developer roles are the values.
The value can be null if a developer has no role in a company.
Add developer or modify developer role in a membership .