1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5/**
6 *
7 *
8 * @author @leifos.de
9 * @ingroup
10 */
11class ilNewsContext
12{
13    /**
14     * @var int
15     */
16    protected $obj_id;
17
18    /**
19     * @var string
20     */
21    protected $obj_type;
22
23    /**
24     * @var int
25     */
26    protected $sub_id;
27
28    /**
29     * @var string
30     */
31    protected $sub_type;
32
33    /**
34     * Constructor
35     */
36    public function __construct(int $obj_id, string $obj_type, int $sub_id, string $sub_type)
37    {
38        $this->obj_id = $obj_id;
39        $this->obj_type = $obj_type;
40        $this->sub_id = $sub_id;
41        $this->sub_type = $sub_type;
42    }
43
44    /**
45     * Get Obj Id
46     *
47     * @return int
48     */
49    public function getObjId() : int
50    {
51        return $this->obj_id;
52    }
53
54    /**
55     * Get Obj Type.
56     *
57     * @return string
58     */
59    public function getObjType() : string
60    {
61        return $this->obj_type;
62    }
63
64    /**
65     * Get Sub Obj Id.
66     *
67     * @return int
68     */
69    public function getSubId() : int
70    {
71        return $this->sub_id;
72    }
73
74    /**
75     * Get Sub Obj Type.
76     *
77     * @return string
78     */
79    public function getSubType() : string
80    {
81        return $this->sub_type;
82    }
83}
84