Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/FactorGraphs/FactorList.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php namespace Moserware\Skills\FactorGraphs;

use Countable;

/**
* Helper class for computing the factor graph's normalization constant.
*/
class FactorList
class FactorList implements Countable
{
private $_list = array();

Expand Down Expand Up @@ -47,4 +49,4 @@ public function addFactor(Factor $factor)
$this->_list[] = $factor;
return $factor;
}
}
}
6 changes: 4 additions & 2 deletions src/HashMap.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php namespace Moserware\Skills;

use Countable;

/**
* Basic hashmap that supports object keys.
*/
class HashMap
class HashMap implements Countable
{
private $_hashToValue = array();
private $_hashToKey = array();
Expand Down Expand Up @@ -48,4 +50,4 @@ private static function getHash($key)

return $key;
}
}
}
4 changes: 3 additions & 1 deletion src/RatingContainer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php namespace Moserware\Skills;

class RatingContainer
use Countable;

class RatingContainer implements Countable
{
private $_playerToRating;

Expand Down