Skip to main content
Winter Boot bundles a handful of small utility classes and traits that keep application code type-safe and boilerplate-free. This page is a reference for the utilities exposed under dev\winterframework\bombok, dev\winterframework\type, and dev\winterframework\util.

bombok\Data trait

The Data trait provides automatic getter and setter methods similar to Java Lombok. Use the trait in your class and access properties via getFieldName() and setFieldName().
Setters automatically validate that argument types match the property’s type declaration.

Objects::hash()

A simple wrapper around PHP’s spl_object_hash() for consistent object hashing.

Typed lists

Winter Boot provides typed list implementations for type-safe collections.

ArrayList

Base class for typed lists with ArrayAccess, Countable, and IteratorAggregate support.

StringList

A list specifically for strings with type validation.
Static factory methods:
  • ofValues(...$values) creates a list from variadic arguments
  • ofArray(array $values) creates a list from an array
  • emptyList() returns the singleton empty list

ImmutableMap

A read-only map implementing ImmutableCollection.

IntegerMinHeap

A min-heap implementation built on SplHeap.

TypeAssert

Highly reusable type validation methods used throughout the framework.

MurmurHash3Provider

MurmurHash3 hash implementation for consistent, non-cryptographic hashing.
The provider implements the HashProvider interface for swappable hash strategies.