Code Duplication    Length = 10-10 lines in 2 locations

src/Entity/Decision.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @return string
39
     */
40
    public function getContentList()
41
    {
42
        $contentList = $this->getEntityValue('content', '');
43
        $ret = [];
44
        foreach ($contentList as $content) {
45
            $ret[] = new Content($content);
46
        }
47
48
        return $ret;
49
    }
50
51
    /**
52
     * Gets the 'policy' parameter.

src/Entity/Rule.php 1 location

@@ 188-197 (lines=10) @@
185
     *
186
     * @return Content[] The list of content this rule applies to
187
     */
188
    public function getContentList()
189
    {
190
        $contentList = $this->getEntityValue('content', '');
191
        $ret = [];
192
        foreach ($contentList as $content) {
193
            $ret[] = new Content($content);
194
        }
195
196
        return $ret;
197
    }
198
199
    /**
200
     * Sets the 'segment' parameter.