forked from tomasell/push
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModel.php
More file actions
37 lines (30 loc) · 749 Bytes
/
Copy pathModel.php
File metadata and controls
37 lines (30 loc) · 749 Bytes
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
33
34
35
36
37
<?php
namespace Bread\Push\Notification;
use Bread\REST;
use Bread\Configuration\Manager as Configuration;
class Model extends REST\Model
{
protected $id;
protected $aco;
protected $aro;
protected $unseen;
}
Configuration::defaults('Bread\Push\Notification\Model', array(
'properties' => array(
'id' => array(
'type' => 'integer',
'unique' => true,
'strategy' => 'autoincrement'
),
'aco' => array(
'type' => 'Bread\REST\Behaviors\ACO'
),
'aro' => array(
'type' => 'Bread\REST\Behaviors\ARO\Authenticated'
),
'unseen' => array(
'type' => 'integer',
'default' => 0
)
)
));