Example #1
0
 /**
  * {@inheritDoc}
  */
 public function jsonSerialize()
 {
     return array_merge(parent::jsonSerialize(), ['url' => $this->getUrl()]);
 }
Example #2
0
 /**
  * {@inheritDoc}
  */
 public function jsonSerialize()
 {
     return array_merge(parent::jsonSerialize(), ['package' => $this->getPackage()]);
 }
 public function testJsonSerialize()
 {
     $commit = new Repository();
     $commit->setName('Name');
     $this->assertInternalType('array', $commit->jsonSerialize());
 }