5
5
/**
6
6
* Class Note
7
7
*
8
- * @property-read int $id
9
8
* @property-read User $author
10
9
* @property-read string $body
11
10
* @property-read string $created_at
@@ -20,7 +19,6 @@ class Note extends AbstractModel
20
19
* @var array
21
20
*/
22
21
protected static $ properties = array (
23
- 'id ' ,
24
22
'author ' ,
25
23
'body ' ,
26
24
'created_at ' ,
@@ -38,7 +36,7 @@ class Note extends AbstractModel
38
36
*/
39
37
public static function fromArray (Client $ client , Noteable $ type , array $ data )
40
38
{
41
- $ comment = new static ($ type , $ data [ ' id ' ], $ client );
39
+ $ comment = new static ($ type , $ client );
42
40
43
41
if (isset ($ data ['author ' ])) {
44
42
$ data ['author ' ] = User::fromArray ($ client , $ data ['author ' ]);
@@ -49,14 +47,12 @@ public static function fromArray(Client $client, Noteable $type, array $data)
49
47
50
48
/**
51
49
* @param Noteable $type
52
- * @param int $id
53
50
* @param Client $client
54
51
*/
55
- public function __construct (Noteable $ type , $ id = null , Client $ client = null )
52
+ public function __construct (Noteable $ type , Client $ client = null )
56
53
{
57
54
$ this ->setClient ($ client );
58
55
$ this ->setData ('parent_type ' , get_class ($ type ));
59
56
$ this ->setData ('parent ' , $ type );
60
- $ this ->setData ('id ' , $ id );
61
57
}
62
58
}
0 commit comments