summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/Property.cpp
blob: 0d9f66dbab19ac50a5e28577c98d1269f56eb9d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
 * Copyright (c) 2022, the SerenityOS developers.
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#include <LibCore/Property.h>

namespace Core {

Property::Property(String name, Function<JsonValue()> getter, Function<bool(JsonValue const&)> setter)
    : m_name(move(name))
    , m_getter(move(getter))
    , m_setter(move(setter))
{
}

}