jaroslavtyc/drd-plus-health

View on GitHub
Health/SeriousWound.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php declare(strict_types=1);

namespace DrdPlus\Health;

use DrdPlus\Codes\Body\SeriousWoundOriginCode;

class SeriousWound extends Wound
{
    /**
     * @param Health $health
     * @param WoundSize $woundSize
     * @param SeriousWoundOriginCode $seriousWoundOriginCode
     * @throws \DrdPlus\Health\Exceptions\WoundHasToBeCreatedByHealthItself
     */
    public function __construct(Health $health, WoundSize $woundSize, SeriousWoundOriginCode $seriousWoundOriginCode)
    {
        parent::__construct($health, $woundSize, $seriousWoundOriginCode);
    }

    public function isSerious(): bool
    {
        return true;
    }

    public function isOrdinary(): bool
    {
        return false;
    }
}