src/ResourcePacks/AgeOfEmpires.php
public function isGateUnit($id)
    {
        return $id === Unit::GATE
            || $id === Unit::GATE2
            || $id === Unit::GATE3
            || $id === Unit::GATE4;
    }
public function isGateUnit($id)
    {
        return $id === Unit::GATE
            || $id === Unit::GATE2
            || $id === Unit::GATE3
            || $id === Unit::GATE4;
    }
public function isGateUnit ( $ id ) { return $ id === Unit :: GATE || $ id === Unit :: GATE2 || $ id === Unit :: GATE3 || $ id === Unit :: GATE4 ; }
Checks whether a unit type ID is a Gate unit.

@param int  $id  Unit type ID.
@return bool True if the unit type is a gate, false otherwise.
Checks whether a unit type ID is a Gate unit .