public static function getByEmail(string $email) : Users
    {
        $user = self::findFirst([
            'conditions' => 'email = ?0',
            'bind' => [$email]
        ]);

        if (!$user) {
            throw new Exception('No User Found');
        }

        return $user;
    }
public static function getByEmail(string $email) : Users
    {
        $user = self::findFirst([
            'conditions' => 'email = ?0',
            'bind' => [$email]
        ]);

        if (!$user) {
            throw new Exception('No User Found');
        }

        return $user;
    }
public static function getByEmail ( string $ email ) : Users { $ user = self :: findFirst ( [ 'conditions' => 'email = ?0' , 'bind' => [ $ email ] ] ) ; if ( ! $ user ) { throw new Exception ( 'No User Found' ) ; } return $ user ; }
get user by there email address
@return User
get user by there email address