Passed
Pull Request — 1.11.x (#4160)
by Angel Fernando Quiroz
10:16
created

QuestionAndAnswer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 8
dl 0
loc 13
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A itemClass() 0 3 1
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\PluginBundle\Zoom\API;
6
7
use Exception;
8
9
class QuestionAndAnswer
10
{
11
    use JsonDeserializableTrait;
12
13
    public $enable;
14
    public $allow_anonymous_questions;
15
    public $answer_questions;
16
    public $attendees_can_upvote;
17
    public $attendees_can_comment;
18
19
    public function itemClass($propertyName)
20
    {
21
        throw new Exception("No such array property $propertyName");
22
    }
23
}
24