TransactionPolicy.php 599 B

1234567891011121314151617181920212223
  1. <?php
  2. // Copyright 2019 Hackware SpA <human@hackware.cl>
  3. // This file is part of "Hackware Web Services Wallet" and licensed under
  4. // the terms of the GNU Affero General Public License version 3, or (at your
  5. // option) a later version. You should have received a copy of this license
  6. // along with the software. If not, see <https://www.gnu.org/licenses/>.
  7. namespace Hawese\Wallet\Policies;
  8. use Hawese\Core\User;
  9. use Hawese\Wallet\Transaction;
  10. class TransactionPolicy
  11. {
  12. /**
  13. * Reserved to superuser
  14. */
  15. public function create(User $user): bool
  16. {
  17. return false;
  18. }
  19. }