like

```php
<?php

$card = new CreditCard;
$card->setNumber($number);
$card->setMaskedNumber(Mask::mask($number, '*', 1));
```