TransientAttributeDescription.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\persistence;
12 
13 /**
14  * Instances of TransientAttributeDescription describe transient attributes of PersistentObjects
15  *
16  * @author ingo herwig <ingo@wemove.com>
17  */
19 
20  protected $name = '';
21  protected $type = 'String';
22 
23  /**
24  * Constructor.
25  * @param $name The attribute name
26  * @param $type The attribute type
27  */
28  public function __construct($name, $type) {
29  $this->name = $name;
30  $this->type = $type;
31  $this->isEditable = false;
32  $this->tags = ["DATATYPE_ATTRIBUTE"];
33  }
34 
35  /**
36  * Get the attribute name
37  * @return String
38  */
39  public function getName() {
40  return $this->name;
41  }
42 
43  /**
44  * Get the attribute type
45  * @return String
46  */
47  public function getType() {
48  return $this->type;
49  }
50 }
51 ?>
Persistence layer related interfaces and classes.
Definition: namespaces.php:42
Instances of AttributeDescription describe attributes of PersistentObjects.
Instances of TransientAttributeDescription describe transient attributes of PersistentObjects.