initial commit
[namibia] / module / Valuation / src / Valuation / DataBin / Report.php
1 <?php
2 namespace Valuation\DataBin;
3
4
5
6 /**
7  * Valuation reports.
8  * @author andre.fourie
9  */
10 class Report extends \Workspace\Service\DataBin
11 {
12
13         /**
14          * @var array
15          */
16         protected $meta = array(
17                         'Base'        => 'Valuation',
18                         'DatasetName' => 'valuations',
19                         'Entity'      => '\Valuation\Entity\Valuation',
20                         'References'  => array(
21                                         'stock'          => '\Stock\Entity\Stock',
22                                         'createdBy'      => '\User\Entity\Profile',
23                                         'valuatedBy'     => '\User\Entity\Profile',
24                                         'salesProfile'   => '\User\Entity\Profile',
25                                         'managerProfile' => '\User\Entity\Profile'
26                         ),
27                         'Dependants'  => array()
28         );
29         /**
30          * @var array
31         */
32         protected $metaValuations = array(
33                         'Type'          => 'Report',
34                         'Builder'       => '\Valuation\Report\Valuations',
35                         'Writer'        => '\Utility\Export\ExcelReport',
36                         'Output'        => 'Download',
37                         'RequiredInput' => array(),
38                         'OptionalInput' => array(
39                                         'Report' => array(
40                                                         'dateFrom'      => 'Date',
41                                                         'dateTo'        => 'Date',
42                                                         'jobState'      => 'String25'
43                                         )
44                         )
45         );
46
47 }