CustomerTaxClass.php 725 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Model\Api\SearchCriteria\JoinProcessor;
  7. use Magento\Framework\Api\SearchCriteria\CollectionProcessor\JoinProcessor\CustomJoinInterface;
  8. use Magento\Framework\Data\Collection\AbstractDb;
  9. /**
  10. * Class CustomerTaxClass
  11. * @package Magento\Tax\Model\Api\SearchCriteria\JoinProcessor
  12. */
  13. class CustomerTaxClass implements CustomJoinInterface
  14. {
  15. /**
  16. * @param \Magento\Tax\Model\ResourceModel\Calculation\Rule\Collection $collection
  17. * @return true
  18. */
  19. public function apply(AbstractDb $collection)
  20. {
  21. $collection->joinCalculationData('ctc');
  22. return true;
  23. }
  24. }