GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.sonsofphp.com — Contracts Overview | Sons of PHP Contracts are interfaces that can be reusable across multiple different libraries and projects. The actual implementation of the interfaces is left up to you. The interfaces also enhance existing PSRs. Whenever possible, the components and projects created by Sons of PHP will implement these interfaces. ImplementationIf you want to provide a concrete library for others to use, add this to your Method NamingFunctionality around method names are kept as similar as possible. They SHOULD follow this convention. with*
Examples:
has*Will always return a Examples
is*Will always return a Examples:
get*Used to return property values. Examples:
set*Used to set property values. SHOULD always return the same instance of the object to allow chaining. Examples:
to*Used to convert an object to a specific format. Examples:
Last updated |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |