Skip to content

Commit

Permalink
Added isMessage to make parsing nested message structures cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Giacobbi committed Dec 16, 2013
1 parent 4506165 commit a391904
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 a391904

Please sign in to comment.