Code Duplication    Length = 92-92 lines in 2 locations

src/MetadataV3/edm/TSchemaType.php 1 location

@@ 14-105 (lines=92) @@
11
 *
12
 * XSD Type: TSchema
13
 */
14
class TSchemaType extends IsOK
15
{
16
    use GSchemaBodyElementsTrait;
17
    /**
18
     * @property string $namespace
19
     */
20
    private $namespace = null;
21
22
    /**
23
     * @property string $namespaceUri
24
     */
25
    private $namespaceUri = null;
26
27
    /**
28
     * @property string $alias
29
     */
30
    private $alias = null;
31
32
    /**
33
     * Gets as namespace
34
     *
35
     * @return string
36
     */
37
    public function getNamespace()
38
    {
39
        return $this->namespace;
40
    }
41
42
    /**
43
     * Sets a new namespace
44
     *
45
     * @param string $namespace
46
     * @return self
47
     */
48
    public function setNamespace($namespace)
49
    {
50
        $this->namespace = $namespace;
51
        return $this;
52
    }
53
54
    /**
55
     * Gets as namespaceUri
56
     *
57
     * @return string
58
     */
59
    public function getNamespaceUri()
60
    {
61
        return $this->namespaceUri;
62
    }
63
64
    /**
65
     * Sets a new namespaceUri
66
     *
67
     * @param string $namespaceUri
68
     * @return self
69
     */
70
    public function setNamespaceUri($namespaceUri)
71
    {
72
        $this->namespaceUri = $namespaceUri;
73
        return $this;
74
    }
75
76
    /**
77
     * Gets as alias
78
     *
79
     * @return string
80
     */
81
    public function getAlias()
82
    {
83
        return $this->alias;
84
    }
85
86
    /**
87
     * Sets a new alias
88
     *
89
     * @param string $alias
90
     * @return self
91
     */
92
    public function setAlias($alias)
93
    {
94
        $this->alias = $alias;
95
        return $this;
96
    }
97
    
98
    public function isOK(&$msg = null)
99
    {
100
        if ($this->isGSchemaBodyElementsValid($msg)) {
101
            return false;
102
        }
103
        return true;
104
    }
105
}
106

src/MetadataV3/edm/TUsingType.php 1 location

@@ 14-105 (lines=92) @@
11
 *
12
 * XSD Type: TUsing
13
 */
14
class TUsingType extends IsOK
15
{
16
    use GEmptyElementExtensibilityTrait;
17
    /**
18
     * @property string $namespace
19
     */
20
    private $namespace = null;
21
22
    /**
23
     * @property string $namespaceUri
24
     */
25
    private $namespaceUri = null;
26
27
    /**
28
     * @property string $alias
29
     */
30
    private $alias = null;
31
32
    /**
33
     * Gets as namespace
34
     *
35
     * @return string
36
     */
37
    public function getNamespace()
38
    {
39
        return $this->namespace;
40
    }
41
42
    /**
43
     * Sets a new namespace
44
     *
45
     * @param string $namespace
46
     * @return self
47
     */
48
    public function setNamespace($namespace)
49
    {
50
        $this->namespace = $namespace;
51
        return $this;
52
    }
53
54
    /**
55
     * Gets as namespaceUri
56
     *
57
     * @return string
58
     */
59
    public function getNamespaceUri()
60
    {
61
        return $this->namespaceUri;
62
    }
63
64
    /**
65
     * Sets a new namespaceUri
66
     *
67
     * @param string $namespaceUri
68
     * @return self
69
     */
70
    public function setNamespaceUri($namespaceUri)
71
    {
72
        $this->namespaceUri = $namespaceUri;
73
        return $this;
74
    }
75
76
    /**
77
     * Gets as alias
78
     *
79
     * @return string
80
     */
81
    public function getAlias()
82
    {
83
        return $this->alias;
84
    }
85
86
    /**
87
     * Sets a new alias
88
     *
89
     * @param string $alias
90
     * @return self
91
     */
92
    public function setAlias($alias)
93
    {
94
        $this->alias = $alias;
95
        return $this;
96
    }
97
98
    public function isOK(&$msg = null)
99
    {
100
        if (!$this->isExtensibilityElementOK($msg)) {
101
            return false;
102
        }
103
        return true;
104
    }
105
}
106