/
OwnerType.php
32 lines (29 loc) · 1.07 KB
/
OwnerType.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
namespace HBDemo\Commenting\Owner\Projection\Standard;
use HBDemo\Commenting\Owner\Projection\Standard\Base\OwnerType as BaseOwnerType;
/**
* Defines the (normalized) strucuture of a default owner projection.
*
* This class reflects the declared structure of the 'Owner'
* entity. It contains the metadata necessary to initiate and manage the
* lifecycle of 'OwnerEntity' instances. Most importantly
* it holds a collection of attributes (and default attributes) that each of the
* entities of this type supports.
*
* For more information and hooks have a look at the base classes.
*/
class OwnerType extends BaseOwnerType
{
//public function getDefaultAttributes()
//{
// $attributes = parent::getDefaultAttributes();
// $attributes['language'] = new Your\Custom\LanguageAttribute('language', array('default' => 'en_UK'));
// $attributes['foobar'] = new Your\Custom\FooBarAttribute('foobar');
// return $attributes;
//}
//
//protected function getEntityImplementor()
//{
// return '\\Your\\Custom\\Entity';
//}
}