@@ 15-82 (lines=68) @@ | ||
12 | * elements. |
|
13 | * XSD Type: TDocumentation |
|
14 | */ |
|
15 | class TDocumentationType extends IsOK |
|
16 | { |
|
17 | ||
18 | /** |
|
19 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType $summary |
|
20 | */ |
|
21 | private $summary = null; |
|
22 | ||
23 | /** |
|
24 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType $longDescription |
|
25 | */ |
|
26 | private $longDescription = null; |
|
27 | ||
28 | /** |
|
29 | * Gets as summary |
|
30 | * |
|
31 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType |
|
32 | */ |
|
33 | public function getSummary() |
|
34 | { |
|
35 | return $this->summary; |
|
36 | } |
|
37 | ||
38 | /** |
|
39 | * Sets a new summary |
|
40 | * |
|
41 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType $summary |
|
42 | * @return self |
|
43 | */ |
|
44 | public function setSummary(TTextType $summary) |
|
45 | { |
|
46 | $this->summary = $summary; |
|
47 | return $this; |
|
48 | } |
|
49 | ||
50 | /** |
|
51 | * Gets as longDescription |
|
52 | * |
|
53 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType |
|
54 | */ |
|
55 | public function getLongDescription() |
|
56 | { |
|
57 | return $this->longDescription; |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Sets a new longDescription |
|
62 | * |
|
63 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl\TTextType $longDescription |
|
64 | * @return self |
|
65 | */ |
|
66 | public function setLongDescription(TTextType $longDescription) |
|
67 | { |
|
68 | $this->longDescription = $longDescription; |
|
69 | return $this; |
|
70 | } |
|
71 | ||
72 | public function isOK(&$msg = null) |
|
73 | { |
|
74 | if (!$this->isObjectNullOrOK($this->summary, $msg)) { |
|
75 | return false; |
|
76 | } |
|
77 | if (!$this->isObjectNullOrOK($this->longDescription, $msg)) { |
|
78 | return false; |
|
79 | } |
|
80 | return true; |
|
81 | } |
|
82 | } |
|
83 |
@@ 16-83 (lines=68) @@ | ||
13 | * elements. |
|
14 | * XSD Type: TDocumentation |
|
15 | */ |
|
16 | class TDocumentationType extends IsOK |
|
17 | { |
|
18 | use IsOKToolboxTrait; |
|
19 | /** |
|
20 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType $summary |
|
21 | */ |
|
22 | private $summary = null; |
|
23 | ||
24 | /** |
|
25 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType $longDescription |
|
26 | */ |
|
27 | private $longDescription = null; |
|
28 | ||
29 | /** |
|
30 | * Gets as summary |
|
31 | * |
|
32 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType |
|
33 | */ |
|
34 | public function getSummary() |
|
35 | { |
|
36 | return $this->summary; |
|
37 | } |
|
38 | ||
39 | /** |
|
40 | * Sets a new summary |
|
41 | * |
|
42 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType $summary |
|
43 | * @return self |
|
44 | */ |
|
45 | public function setSummary(TTextType $summary) |
|
46 | { |
|
47 | $this->summary = $summary; |
|
48 | return $this; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * Gets as longDescription |
|
53 | * |
|
54 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType |
|
55 | */ |
|
56 | public function getLongDescription() |
|
57 | { |
|
58 | return $this->longDescription; |
|
59 | } |
|
60 | ||
61 | /** |
|
62 | * Sets a new longDescription |
|
63 | * |
|
64 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TTextType $longDescription |
|
65 | * @return self |
|
66 | */ |
|
67 | public function setLongDescription(TTextType $longDescription) |
|
68 | { |
|
69 | $this->longDescription = $longDescription; |
|
70 | return $this; |
|
71 | } |
|
72 | ||
73 | public function isOK(&$msg = null) |
|
74 | { |
|
75 | if (!$this->isObjectNullOrOK($this->summary, $msg)) { |
|
76 | return false; |
|
77 | } |
|
78 | if (!$this->isObjectNullOrOK($this->longDescription, $msg)) { |
|
79 | return false; |
|
80 | } |
|
81 | return true; |
|
82 | } |
|
83 | } |
|
84 |