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
3333 */
3434 public static function fromArray (Client $ client , Project $ project , array $ data )
3535 {
36- $ wiki = new static ($ project , $ data ['id ' ], $ client );
36+ $ wiki = new static ($ project , $ data ['slug ' ], $ client );
3737
3838 return $ wiki ->hydrate ($ data );
3939 }
4040
4141 /**
4242 * @param Project $project
43- * @param int $id
43+ * @param string $slug
4444 * @param Client $client
4545 */
46- public function __construct (Project $ project , $ id = null , Client $ client = null )
46+ public function __construct (Project $ project , $ slug = null , Client $ client = null )
4747 {
4848 $ this ->setClient ($ client );
4949 $ this ->setData ('project ' , $ project );
50- $ this ->setData ('id ' , $ id );
50+ $ this ->setData ('slug ' , $ slug );
5151 }
5252
5353 /**
5454 * @return Wiki
5555 */
5656 public function show ()
5757 {
58- $ data = $ this ->client ->wiki ()->show ($ this ->project ->id , $ this ->id );
58+ $ data = $ this ->client ->wiki ()->show ($ this ->project ->id , $ this ->slug );
5959
6060 return static ::fromArray ($ this ->getClient (), $ this ->project , $ data );
6161 }
6262
6363 /**
6464 * @param array $params
65- * @return Schedule
65+ * @return Wiki
6666 */
6767 public function update (array $ params )
6868 {
You can’t perform that action at this time.
0 commit comments