Although keep in mind that AFAIK this applies to consumers and if you buy with your business it might not apply -- learned this the hard way when my charger broke after 18 months.
[0] https://europa.eu/youreurope/business/dealing-with-customers...
That is why I buy them private and then declare the invoice at the company.
The 2-year "warranty" required by law is not the same and only covers defects existing from the time of purchase, and after 6 months the burden of proof falls to the customer. In practice I've never seen this play out because almost all manufacturers (with Apple being an exception) offer 2-3 years of full warranty here either way.
That is how I canceled my Vodafone contract, while Vodafone was playing word games on me and refusing to accept my rights as consumer.
After filling a complaint, and getting a call from the consumer goverment agency, apparently it was all in order to cancel the contract.
Same will apply to Apple.
Though on average Apple most likely isn't the worst company to deal with.