Permalink
Browse files

Adding the third step of using the tutorial

  • Loading branch information...
1 parent b368105 commit 1a2c290c0e0034ebf51ba265c9c5a22959d6f26d Paul Matthews committed Oct 12, 2010
Showing with 19 additions and 0 deletions.
  1. +19 −0 step3/LinkPeer.php
View
19 step3/LinkPeer.php
@@ -0,0 +1,19 @@
+<?php
+
+class LinkPeer
+{
+ const COLLECTION = 'link';
+ const ID_FIELD = 'url';
+ const DB_ID_FIELD = '_id';
+
+ private $db;
+ private $collection;
+
+ public function __construct(MongoDb $db)
+ {
+ $this->db = $db;
+ }
+
+ ...
+
+}

0 comments on commit 1a2c290

Please sign in to comment.