Skip to content

Reference

phil/commerce-product-template
TypeKindRole
Phil\CommerceProductTemplate\Templatefinal readonly classA blank: axes, faces, pricing, exclusions, SKU pattern, supplier
Phil\CommerceProductTemplate\Axisfinal readonly classWhat products vary by, and its values in order
Phil\CommerceProductTemplate\AxisValuefinal readonly classOne value: code, label, swatch, supplier name, photos, channels
Phil\CommerceProductTemplate\Labelfinal readonly classA text by locale
Phil\CommerceProductTemplate\Swatchfinal readonly classA colour or the photo of a sample
Phil\CommerceProductTemplate\Facefinal readonly classA face and its print zones
Phil\CommerceProductTemplate\PrintZonefinal readonly classA zone in millimetres, its resolution and its photo box
Phil\CommerceProductTemplate\PhotoBoxfinal readonly classThe rectangle of a zone on the photos of its face, in pixels
Phil\CommerceProductTemplate\Pricingfinal readonly classA base price, prices per value of one axis, supplements
Phil\CommerceProductTemplate\Exclusionfinal readonly classCombinations a template does not make
Phil\CommerceProductTemplate\Combinationfinal readonly classOne value of each axis
Phil\CommerceProductTemplate\SkuPatternfinal readonly classLiterals and placeholders, rendered per product
Phil\CommerceProductTemplate\Designfinal readonly classWhat is printed: code, name, languages, artworks, templates, allowed values
Phil\CommerceProductTemplate\LanguageVersionfinal readonly classA language's SKU code and locale
Phil\CommerceProductTemplate\Artworkfinal readonly classAn image in a zone, for a language and a condition
Phil\CommerceProductTemplate\VariantPlannerfinal readonly classPlans the products of a design on a template
Phil\CommerceProductTemplate\Variantfinal readonly classOne planned product
Phil\CommerceProductTemplate\PlacedArtworkfinal readonly classAn artwork with the face and zone it prints in
Phil\CommerceProductTemplate\TemplateArrayfinal classA template as a versioned array, and back
Phil\CommerceProductTemplate\DesignArrayfinal classA design as a versioned array, and back
Phil\CommerceProductTemplate\Exception\ProductTemplateExceptioninterfaceEvery exception of the library
Phil\CommerceProductTemplate\Exception\InvalidDefinitionfinal classA definition refused
Phil\CommerceProductTemplate\Exception\PlanRefusedfinal classA plan refused

Internal\Check and Internal\Reader are internal: they may change in any version.