Method Structure

Replaceable Functions

Almost every function in the B2B-Suite is replaceable but not all are guaranteed to be compatible to every version change.

Protected Functions

Protected functions with an @internal comment are not guaranteed to be compatible or changed to minor versions changes.

Example:

<?php declare(strict_types=1);

namespace Shopware\B2B\Common\Controller;

[...]

class GridHelper
{    
    [...]
    
    /**
     * @internal
     * @param Request $request
     * @param SearchStruct $struct
     */
    protected function extractLimitAndOffset(Request $request, SearchStruct $struct)
    {
        $struct->offset = $request->getParam('offset', null);
        $struct->limit = $request->getParam('limit', null);
    }

    [...]
}

Public Functions

Public functions are made to be compatible and not be changed until major version changes.