1+ <?php
2+
3+ namespace BekoDesign \versioAPI \Models ;
4+
5+ use BekoDesign \versioAPI \Contracts \ICancelable ;
6+ use BekoDesign \versioAPI \Contracts \ICreatable ;
7+ use BekoDesign \versioAPI \Contracts \IGetable ;
8+ use BekoDesign \versioAPI \Contracts \IListable ;
9+ use BekoDesign \versioAPI \Contracts \IRenewable ;
10+ use BekoDesign \versioAPI \Contracts \ISSLCertificate ;
11+ use BekoDesign \versioAPI \Contracts \IUpdateable ;
12+ use BekoDesign \versioAPI \Traits \Cancelable ;
13+ use BekoDesign \versioAPI \Traits \Creatable ;
14+ use BekoDesign \versioAPI \Traits \Getable ;
15+ use BekoDesign \versioAPI \Traits \Listable ;
16+ use BekoDesign \versioAPI \Traits \Renewable ;
17+ use BekoDesign \versioAPI \Traits \Updateable ;
18+
19+ class SSLCertificate implements ISSLCertificate, IListable, ICreatable, IGetable, IRenewable, ICancelable, IUpdateable
20+ {
21+ use Listable, Creatable, Getable, Renewable, Cancelable, Updateable;
22+
23+ protected $ endpoint = 'sslcertificates ' ;
24+
25+ /**
26+ * Category constructor.
27+ * @param $client
28+ */
29+ public function __construct ($ client )
30+ {
31+ $ this ->client = $ client ;
32+ }
33+
34+ public function getRenewUrl ($ key , $ data = [], $ urlPostfix = '' ) : string {
35+ return $ this ->endpoint . '/ ' . $ key . '/reissue ' . $ urlPostfix ;
36+ }
37+
38+ public function getUpdateUrl ($ key , $ data = [], $ urlPostfix = '' ) : string {
39+ return $ this ->endpoint . '/ ' . $ key . '/changeapprover ' . $ urlPostfix ;
40+ }
41+
42+
43+ }
0 commit comments