ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilNewsServiceDependencies.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
12{
16 protected $lng;
17
21 protected $settings;
22
26 protected $obj_adapter;
27
31 protected $user;
32
38 {
39 $this->lng = $lng;
40 $this->settings = $settings;
41 $this->user = $user;
42 $this->obj_adapter = $obj_adapter;
43 }
44
50 public function obj()
51 {
52 return $this->obj_adapter;
53 }
54
55
61 public function language() : ilLanguage
62 {
63 return $this->lng;
64 }
65
71 public function settings() : ilSetting
72 {
73 return $this->settings;
74 }
75
81 public function user() : ilObjUser
82 {
83 return $this->user;
84 }
85}
An exception for terminatinating execution or to throw for unit testing.
language handling
__construct(ilLanguage $lng, ilSetting $settings, ilObjUser $user, ilNewsObjectAdapterInterface $obj_adapter)
Constructor.
ILIAS Setting Class.