Skip to content

Commit

Permalink
Merge pull request drslump#32 from jgiacobbi/feature/isMessage
Browse files Browse the repository at this point in the history
Added isMessage to make parsing nested message structures cleaner
  • Loading branch information
drslump committed Dec 16, 2013
2 parents 4506165 + a391904 commit 2201961
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/DrSlump/Protobuf/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,9 @@ public function isExtension()
{
return $this->extension;
}

public function isMessage()
{
return $this->type === Protobuf::TYPE_MESSAGE;
}
}

0 comments on commit 2201961

Please sign in to comment.