Skip to content

PZP Product documentation

Documentation for pzp product subclass

Have to implements (interface)

add to your product (or replace GeneralProductInterface)

... implements \BP\Products\Pzp\PzpInterface

coverage(): array

/**
 * Return health, property coverages
 *
 * @return array
 */
public function coverage(): array
{
    return [
        COVERAGE_PROPERTY => 1,        // Property coverage in milions €
        COVERAGE_HEALTH => 5,          // Health ...
    ];
}

Inherited from PzpProduct class

Methods and properties you can use from general product class
+ Vehicle helpers

Methods

addWhiteCard()

/**
 * Helper method to add default white card if no other
 *
 * @return bool
 */

addGreenCard()

/**
 * Helper method to add default green card if no other
 *
 * @return bool
 */

addGreenCardBw()

/**
 * Helper method to add default green card black and white if no other
 *
 * @return bool
 */

hasSecurity(string $code): bool

/**
 * Detect if security is available in vehicle
 *
 * @param string $code (see constants)
 * @return bool
 */