Is there an iPhone app for blocking calls and texts?

I had an app on my last android phone called 'call blacklist' you could add numbers you didn't want to have text or call you. And if those numbers did, it showed it in a message log on the app. Is there anything like that for the iPhone? I really could use it.

No because iphones are over priced over rated pieces of trash.