Skip to content

Commit

Permalink
Add to static slides
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Nov 28, 2013
1 parent 7726ccc commit 268ef90
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions craftmanship/static/index.html
Expand Up @@ -214,13 +214,14 @@ <h3>SOLID</h3>
<img src="img/success.jpeg" width="200px" />
</p>
</section>
<section>
<pre><code contenteditable class="PHP">
<section>
<pre><code contenteditable class="PHP">
public function __construct( Logger $logger, DataStore $dataStore ) {
$this->logger = $logger;
$this->dataStore = $dataStore;
}

</code></pre>
<pre><code contenteditable class="PHP">
public function doStuff() {
// ...

Expand All @@ -241,21 +242,16 @@ <h3>SOLID</h3>

<pre><code contenteditable class="PHP">
public function testDoStuff() {
// ...

// Create simple mocks
$logger = new NullLogger();
$dataStore = new MockDataStore();

$object = new SomeObject( $logger, $dataStore );

$object->doStuff( $logger, $dataStore );

// ...
}
</code></pre>
<p class="fragment">
<span style="color:lightblue"><b>D</b></span>ependency Inversion Principle<br />
<img src="img/success.jpeg" width="200px" />
</p>
</section>


Expand Down

0 comments on commit 268ef90

Please sign in to comment.