/** * Create a new model instance * * @return ModelHashingStub */ public function __construct() { parent::__construct(); // Assign a default hasher for mocking purposes $this->hasher = new BcryptHasher(); }
/** * Create a new model instance. * * @return ModelEncryptingStub */ public function __construct() { parent::__construct(); // Assign a default encrypter for mocking purposes $this->encrypter = EncrypterStub::newInstance(); }