Which SOLID principle is followed by the given code snippet?

Paint says Bye! image