据我所知,Laravel将其扩展的接口称为契约,因为它们由Laravel使用.但这似乎有点像循环推理.仅仅因为您的项目使用了现有PHP特性,所以更改现有PHP特性的术语不会增加任何价值.
Is there something more to it? What's the logic behind coining a new term for something that's a standard PHP feature? Or is there some feature of Contracts that are not already in Interfaces?
Edit: To clarify, it's the usage of Contract as a proper noun in the documentation that has me confused, as explained in my comment on Thomas's post