Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
leevigraham committed Oct 20, 2013
1 parent be8e0af commit df9b047
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
naming
======

Naming conventions
==================

A collection of abstract naming conventions so I don't have to think about this kind of stuff anymore.

* `Collection`: A group of `CollectionItems`. Example: `BlogPostCollection` has many `BlogPost`s https://github.com/doctrine/collections/blob/master/lib/Doctrine/Common/Collections/ArrayCollection.php
* `CollectionItem`: Belongs to a `Collection`:
* `Period`: The span of two Dates. Example: http://www.php.net/manual/en/class.dateperiod.php
* `Interval`: A repeating unit in a `Period`. Example: `P2W` http://php.net/manual/en/class.dateinterval.php
* `Range`: An array of elements with a predefined set of steps
* `Criteria`: Any kind of condition / clause for searches, where statements etc

0 comments on commit df9b047

Please sign in to comment.