/** * Tests GroupId->fromJson() */ public function testFromJson() { $json = 'jsonid'; $fromJson = $this->GroupId->fromJson($json); $this->assertEquals('groupId', $fromJson->getType()); $this->assertEquals('jsonid', $fromJson->getGroupId()); }
public function getGroup() { return GroupId::fromJson($this->getParameter(self::$GROUP_ID, "@self")); }
public function getGroup() { return isset($this->parameters[self::$GROUP_ID]) ? GroupId::fromJson($this->parameters[self::$GROUP_ID]) : false; }