1<?php
2/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4/**
5 * Class ilObjectCustomIconPresenter
6 */
7class ilObjectCustomIconPresenterImpl implements \ilObjectCustomIconPresenter
8{
9    /** @var \ilObjectCustomIcon */
10    private $icon = null;
11
12    /**
13     * ilObjectCustomIconPresenter constructor.
14     * @param ilObjectCustomIcon $icon
15     */
16    public function __construct(\ilObjectCustomIcon $icon)
17    {
18        $this->icon = $icon;
19    }
20
21    /**
22     * @inheritdoc
23     */
24    public function exists() : bool
25    {
26        return $this->icon->exists();
27    }
28
29    /**
30     * @inheritdoc
31     */
32    public function getFullPath() : string
33    {
34        return $this->icon->getFullPath();
35    }
36}
37