src/Model.php
protected static function boot_traits() {

		$class = get_called_class();

		// this method will return an empty array on PHP < 5.4
		$uses = class_uses_recursive( get_called_class() );

		foreach ( $uses as $trait ) {
			if ( method_exists( $class, $method = 'boot_' . class_basename( $trait ) ) ) {
				forward_static_call( array( $class, $method ) );
			}
		}
	}
protected static function boot_traits() {

		$class = get_called_class();

		// this method will return an empty array on PHP < 5.4
		$uses = class_uses_recursive( get_called_class() );

		foreach ( $uses as $trait ) {
			if ( method_exists( $class, $method = 'boot_' . class_basename( $trait ) ) ) {
				forward_static_call( array( $class, $method ) );
			}
		}
	}
Boot any traits this model uses.

This looks for and executes static methods named 'boot_TraitName'.

@since 2.0