File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -33,36 +33,36 @@ class Wiki extends AbstractModel
33
33
*/
34
34
public static function fromArray (Client $ client , Project $ project , array $ data )
35
35
{
36
- $ wiki = new static ($ project , $ data ['id ' ], $ client );
36
+ $ wiki = new static ($ project , $ data ['slug ' ], $ client );
37
37
38
38
return $ wiki ->hydrate ($ data );
39
39
}
40
40
41
41
/**
42
42
* @param Project $project
43
- * @param int $id
43
+ * @param string $slug
44
44
* @param Client $client
45
45
*/
46
- public function __construct (Project $ project , $ id = null , Client $ client = null )
46
+ public function __construct (Project $ project , $ slug = null , Client $ client = null )
47
47
{
48
48
$ this ->setClient ($ client );
49
49
$ this ->setData ('project ' , $ project );
50
- $ this ->setData ('id ' , $ id );
50
+ $ this ->setData ('slug ' , $ slug );
51
51
}
52
52
53
53
/**
54
54
* @return Wiki
55
55
*/
56
56
public function show ()
57
57
{
58
- $ data = $ this ->client ->wiki ()->show ($ this ->project ->id , $ this ->id );
58
+ $ data = $ this ->client ->wiki ()->show ($ this ->project ->id , $ this ->slug );
59
59
60
60
return static ::fromArray ($ this ->getClient (), $ this ->project , $ data );
61
61
}
62
62
63
63
/**
64
64
* @param array $params
65
- * @return Schedule
65
+ * @return Wiki
66
66
*/
67
67
public function update (array $ params )
68
68
{
You can’t perform that action at this time.
0 commit comments