public function getIdentify($email, $name = '', $properties = [])
    {
        if (!$email) {
            throw new InvalidArgumentException('E-mail cannot be empty or null');
        }

        //props that we will combine with default props
        $props = [
            PayloadProperties::EMAIL => Encryption::decode($email)
        ];

        if ($name) {
            $props[PayloadProperties::NAME] = $name;
        }

        if ($properties) {
            $props[PayloadProperties::PROPERTIES] = $properties;
        }

        return $this->getTrackPayload(ActionTypes::IDENTIFY, $props);
    }
public function getIdentify($email, $name = '', $properties = [])
    {
        if (!$email) {
            throw new InvalidArgumentException('E-mail cannot be empty or null');
        }

        //props that we will combine with default props
        $props = [
            PayloadProperties::EMAIL => Encryption::decode($email)
        ];

        if ($name) {
            $props[PayloadProperties::NAME] = $name;
        }

        if ($properties) {
            $props[PayloadProperties::PROPERTIES] = $properties;
        }

        return $this->getTrackPayload(ActionTypes::IDENTIFY, $props);
    }
public function getIdentify ( $ email , $ name = '' , $ properties = [ ] ) { if ( ! $ email ) { throw new InvalidArgumentException ( 'E-mail cannot be empty or null' ) ; } //props that we will combine with default props $ props = [ PayloadProperties :: EMAIL => Encryption :: decode ( $ email ) ] ; if ( $ name ) { $ props [ PayloadProperties :: NAME ] = $ name ; } if ( $ properties ) { $ props [ PayloadProperties :: PROPERTIES ] = $ properties ; } return $ this -> getTrackPayload ( ActionTypes :: IDENTIFY , $ props ) ; }
Generates payload for identify events

@param $email
@param string $name
@param array $properties
@return array
@throws InvalidArgumentException
Generates payload for identify events