• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

oat-sa / lib-lti1p3-basic-outcome / 6584027245

20 Oct 2023 06:06AM UTC coverage: 100.0%. Remained the same
6584027245

push

github

web-flow
Merge pull request #28 from oat-sa/feature/sonarqube-integration

Sonarqube integration with project

285 of 285 relevant lines covered (100.0%)

21.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Message/AbstractBasicOutcomeMessage.php
1
<?php
2

3
/**
4
 * This program is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU General Public License
6
 * as published by the Free Software Foundation; under version 2
7
 * of the License (non-upgradable).
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17
 *
18
 * Copyright (c) 2020 (original work) Open Assessment Technologies SA;
19
 */
20

21
declare(strict_types=1);
22

23
namespace OAT\Library\Lti1p3BasicOutcome\Message;
24

25
abstract class AbstractBasicOutcomeMessage implements BasicOutcomeMessageInterface
26
{
27
    /** @var string */
28
    private $identifier;
29

30
    /** @var string */
31
    private $type;
32

33
    public function __construct(string $identifier, string $type)
34
    {
35
        $this->identifier = $identifier;
99✔
36
        $this->type = $type;
99✔
37
    }
99✔
38

39
    public function getIdentifier(): string
40
    {
41
        return $this->identifier;
87✔
42
    }
43

44
    public function getType(): string
45
    {
46
        return $this->type;
81✔
47
    }
48
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc