src/Invoice/CompletorStrategyLines.php
protected function getStrategyClasses()
    {
        $result = array();

        // For now hardcoded, but this can be turned into a discovery.
        $namespace = '\Siel\Acumulus\Invoice\CompletorStrategy';
        $result[] = "$namespace\\ApplySameVatRate";
        $result[] = "$namespace\\SplitKnownDiscountLine";
        $result[] = "$namespace\\SplitLine";
        $result[] = "$namespace\\SplitNonMatchingLine";
        $result[] = "$namespace\\TryAllVatRatePermutations";

        usort($result, function($class1, $class2) {
           return $class1::$tryOrder - $class2::$tryOrder;
        });

        return $result;
    }
protected function getStrategyClasses()
    {
        $result = array();

        // For now hardcoded, but this can be turned into a discovery.
        $namespace = '\Siel\Acumulus\Invoice\CompletorStrategy';
        $result[] = "$namespace\\ApplySameVatRate";
        $result[] = "$namespace\\SplitKnownDiscountLine";
        $result[] = "$namespace\\SplitLine";
        $result[] = "$namespace\\SplitNonMatchingLine";
        $result[] = "$namespace\\TryAllVatRatePermutations";

        usort($result, function($class1, $class2) {
           return $class1::$tryOrder - $class2::$tryOrder;
        });

        return $result;
    }
protected function getStrategyClasses ( ) { $ result = array ( ) ; // For now hardcoded, but this can be turned into a discovery. $ namespace = '\Siel\Acumulus\Invoice\CompletorStrategy' ; $ result [ ] = "$namespace\\ApplySameVatRate" ; $ result [ ] = "$namespace\\SplitKnownDiscountLine" ; $ result [ ] = "$namespace\\SplitLine" ; $ result [ ] = "$namespace\\SplitNonMatchingLine" ; $ result [ ] = "$namespace\\TryAllVatRatePermutations" ; usort ( $ result , function ( $ class1 , $ class2 ) { return $ class1 :: $ tryOrder - $ class2 :: $ tryOrder ; } ) ; return $ result ; }
Returns a list of strategy class names.

@return string[]
Returns a list of strategy class names .