Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyShepherd committed Mar 10, 2017
1 parent 4ae278e commit 67167bc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Model/Reflection/Type/CollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public function compatible(AbstractType $type) : bool
$this->of->compatible($type->of);
}

/**
* {@inheritDoc}
*/
public function equals($object) : bool
{
return
Expand Down
9 changes: 9 additions & 0 deletions src/Model/Reflection/Type/ObjectType.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public function compatible(AbstractType $type) : bool
return $this->compare($type) >= 0;
}

/**
* Compares the given type to this
*
* @param AbstractType $type
* @return int
*/
public function compare($type) : int
{
if
Expand All @@ -82,6 +88,9 @@ public function compare($type) : int
return -1;
}

/**
* {@inheritDoc}
*/
public function equals($object) : bool
{
return $this->compare($type) === 0;
Expand Down

0 comments on commit 67167bc

Please sign in to comment.