override fun equals()

in src/main/kotlin/com/pestphp/pest/features/customExpectations/generators/Method.kt [19:32]


    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as Method

        if (name != other.name) return false
        if (returnType.toString() != other.returnType.toString()) return false


        if (parameters != other.parameters) return false

        return true
    }