private function getEmailFromDynamic(Dynamic $dynamic)
    {
        $emails = $dynamic->getFieldsByType(Dynamic::TYPE_EMAIL);
        $email = reset($emails);

        return $this->getEmail($email);
    }
private function getEmailFromDynamic(Dynamic $dynamic)
    {
        $emails = $dynamic->getFieldsByType(Dynamic::TYPE_EMAIL);
        $email = reset($emails);

        return $this->getEmail($email);
    }
private function getEmailFromDynamic ( Dynamic $ dynamic ) { $ emails = $ dynamic -> getFieldsByType ( Dynamic :: TYPE_EMAIL ) ; $ email = reset ( $ emails ) ; return $ this -> getEmail ( $ email ) ; }
Get email from dynamic.

@param Dynamic $dynamic

@return array|null
Get email from dynamic .