Last active
November 15, 2020 12:39
-
-
Save ksmylmz/8f619e765abfdbf8743e0345f2d8ceaf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| public class Cart | |
| { | |
| public $KartIsım; | |
| public $Kartno; | |
| public $KartGecerlilikAy; | |
| public $KartGecerlilikYıl; | |
| public $CVC; | |
| } | |
| public interface IOdemeAl | |
| { | |
| public function tekCekimOdemeAl(); | |
| public function taksitliOdemeAl(); | |
| public function fraudKontrol(); | |
| } | |
| public class KrediKart extends Card implements IOdemeAl | |
| { | |
| public function __construct(Card $card) | |
| { | |
| $this->KartIsım = $card->KartIsım; | |
| $this->Kartno = $card->Kartno; | |
| $this->KartGecerlilikAy = $card->KartGecerlilikAy; | |
| $this->KartGecerlilikYıl = $card->KartGecerlilikYıl; | |
| $this->CVC = $card->CVC; | |
| } | |
| public function tekCekimOdemeAl() | |
| { | |
| //tekçekim odemealmaişlemleri | |
| } | |
| public function taksitliOdemeAl() | |
| { | |
| //tekçekim odemealmaişlemleri | |
| } | |
| public function fraudKontrol() | |
| { | |
| //fraudKontrol | |
| } | |
| } | |
| public class DebitKart extends Card implements IOdemeAl | |
| { | |
| public function __construct(Card $card) | |
| { | |
| $this->KartIsım = $card->KartIsım; | |
| $this->Kartno = $card->Kartno; | |
| $this->KartGecerlilikAy = $card->KartGecerlilikAy; | |
| $this->KartGecerlilikYıl = $card->KartGecerlilikYıl; | |
| $this->CVC = $card->CVC; | |
| } | |
| public function tekCekimOdemeAl() | |
| { | |
| //tekçekim odemealmaişlemleri | |
| } | |
| public function taksitliOdemeAl() | |
| { | |
| //dummy codes | |
| } | |
| public function fraudKontrol() | |
| { | |
| //fraudKontrol | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment