X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fstacker%2Fclass_Stackable.php;h=f7f3872b865e307ef2b54460d83a67da1539807f;hb=024347bb5d62151f49c959cdeeaecc061fb2be66;hp=3a2ddb2cacff27a16afa06161c1a6d3163e65c4c;hpb=64adf2e0b8dc0f38717df467fe7a64c2ed39f32c;p=core.git diff --git a/framework/main/interfaces/stacker/class_Stackable.php b/framework/main/interfaces/stacker/class_Stackable.php index 3a2ddb2c..f7f3872b 100644 --- a/framework/main/interfaces/stacker/class_Stackable.php +++ b/framework/main/interfaces/stacker/class_Stackable.php @@ -75,4 +75,30 @@ interface Stackable extends FrameworkInterface { */ function isStackEmpty (string $stackerName); + /** + * Initializes given stacker + * + * @param $stackerName Name of the stack + * @param $forceReInit Force re-initialization + * @return void + * @throws UnsupportedOperationException This method is not (and maybe never will be) supported + */ + function initStack (string $stackerName, bool $forceReInit = false); + + /** + * Initializes all stacks + * + * @return void + * @throws UnsupportedOperationException This method is not (and maybe never will be) supported + */ + function initStacks (array $stacks, bool $forceReInit = false); + + /** + * Getter for size of given stack (array count) + * + * @param $stackerName Name of the stack + * @return $count Size of stack (array count) + */ + function getStackCount (string $stackerName); + }