diff --git a/src/CreditCard.php b/src/CreditCard.php new file mode 100644 index 0000000..4e88856 --- /dev/null +++ b/src/CreditCard.php @@ -0,0 +1,59 @@ +number = $number; + $this->expiry = $expiry; + $this->crypt = $crypt; + } + + /** + * Create a new CreditCard instance. + * + * @param string $number + * @param string $expiry + * @param int $crypt + * + * @return $this + */ + public static function create(string $number, string $expiry, int $crypt = 7) + { + return new static($number, $expiry, $crypt); + } +} \ No newline at end of file