jaroslavtyc/drd-plus-codes

View on GitHub
Codes/Armaments/ArmorCode.php

Summary

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

namespace DrdPlus\Codes\Armaments;

use DrdPlus\Codes\Partials\FileBasedTranslatableExtendableCode;

abstract class ArmorCode extends FileBasedTranslatableExtendableCode implements ProtectiveArmamentCode
{
    /**
     * @return bool
     */
    abstract public function isHelm(): bool;

    /**
     * @return bool
     */
    abstract public function isBodyArmor(): bool;

    /**
     * @return bool
     */
    public function isProtectiveArmament(): bool
    {
        return true;
    }

    /**
     * @return bool
     */
    public function isProjectile(): bool
    {
        return false;
    }

    /**
     * @return bool
     */
    final public function isArmor(): bool
    {
        return true;
    }

    /**
     * @return bool
     */
    public function isShield(): bool
    {
        return false;
    }

    /**
     * @return bool
     */
    public function isWeaponlike(): bool
    {
        return false;
    }

}