YetiForceCompany/YetiForceCRM

View on GitHub
app/Fields/Email.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace App\Fields;

/**
 * Tools for email class.
 *
 * @package App
 *
 * @copyright YetiForce S.A.
 * @license   YetiForce Public License 6.5 (licenses/LicenseEN.txt or yetiforce.com)
 * @author    Mariusz Krzaczkowski <m.krzaczkowski@yetiforce.com>
 */
class Email
{
    /**
     * Get user mail.
     *
     * @param int $userId
     *
     * @return string
     */
    public static function getUserMail($userId)
    {
        return \App\User::getUserModel($userId)->getDetail('email1');
    }
}