initial commit
[namibia] / module / Valuation / src / Valuation / DataBin / CustomerPublicValuation.php
1 <?php
2
3 namespace Valuation\DataBin;
4
5 /**
6  * Manage Customer Public Valuation data.
7  * @author andre.fourie
8  */
9 class CustomerPublicValuation extends \Workspace\Service\DataBin
10 {
11
12   /**
13    * @var array
14    */
15   protected $meta = array(
16     'Base' => 'CustomerPublicValuation',
17     'DatasetName' => 'customerPublicValuations',
18     'Entity' => '\Valuation\Entity\CustomerPublicValuation',
19     'References' => array(
20       'stock' => '\Stock\Entity\Stock',
21       'valuation' => '\Valuation\Entity\Valuation',
22     ),
23     'Dependants' => array()
24   );
25
26   /**
27    * @var array
28    */
29   protected $metaList = array(
30     'Contract' => 'Recurring',
31     'RequireAuth' => true,
32     'RequiredInput' => array(),
33     'OptionalInput' => array(
34       'Filter' => array(
35         'created' => 'Date',
36         'updated' => 'Date',
37         'customerHash' => 'String255',
38         'stock' => 'Id',
39         'valuation' => 'Id',
40       )
41     ),
42     'Filter' => array(),
43     'Fields' => array(
44       'customerHash',
45       'stock',
46       'valuation'
47     ),
48     'Expand' => array()
49   );
50
51
52
53   /**
54    * @var array
55    */
56   protected $metaCreate = array(
57     'Type' => 'Create',
58     'Contract' => 'Recurring',
59     'Flags' => array(),
60     'RelatedEntityFromInput' => array(
61       'Stock' => array(
62         'Workflow' => '\Stock\Workflow',
63         'Service' => '\Stock\Service\Stock',
64         'Field' => 'stock'
65       ),
66         'Valuation' => array(
67         'Workflow' => '\Valuation\Workflow',
68         'Service' => '\Valuation\Service\Valuation',
69         'Field' => 'valuation'
70       )
71     ),
72     'RequiredInput' => array(
73       'CustomerPublicValuation' => array(
74         'customerHash' => 'String255'
75       ),
76     ),
77     'OptionalInput' => array(
78       'CustomerPublicValuation' => array()
79     )
80   );
81
82
83
84   /**
85    * @var array
86    */
87   protected $metaUpdate = array(
88     'Type' => 'Update',
89     'Contract' => 'UseOnce',
90     'RequireAuth' => true,
91       'RelatedEntityFromInput' => array(
92           'Stock' => array(
93               'Workflow' => '\Stock\Workflow',
94               'Service' => '\Stock\Service\Stock',
95               'Field' => 'stock'
96           ),
97           'Valuation' => array(
98               'Workflow' => '\Valuation\Workflow',
99               'Service' => '\Valuation\Service\Valuation',
100               'Field' => 'valuation'
101           )
102       ),
103       'RequiredInput' => array(
104           'CustomerPublicValuation' => array(
105               'customerHash' => 'String255'
106           ),
107       ),
108       'OptionalInput' => array(
109           'CustomerPublicValuation' => array()
110       )
111   );
112
113
114   /**
115    * @var array
116    */
117   protected $metaDelete = array(
118     'Contract' => 'UseOnce',
119     'RequireAuth' => true
120   );
121
122
123
124   /**
125    * Dynamic filtering.
126    */
127   public function __construct()
128   {
129
130   }
131
132 }