Skip to content

Commit

Permalink
Merge 357aa41 into 66dae21
Browse files Browse the repository at this point in the history
  • Loading branch information
vody105 committed May 17, 2018
2 parents 66dae21 + 357aa41 commit ea60153
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ContentNegotiation.php
Expand Up @@ -17,9 +17,8 @@ class ContentNegotiation

/**
* @param array $negotiators
* @param array $options
*/
public function __construct(array $negotiators = [], array $options = [])
public function __construct(array $negotiators = [])
{
$this->addNegotiations($negotiators);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/MappingEntity.php
Expand Up @@ -36,7 +36,7 @@ public function getEntity()
}

/**
* @param IResponseEntity $value
* @param IResponseEntity $entity
* @return static
*/
public static function from(IResponseEntity $entity)
Expand Down
27 changes: 27 additions & 0 deletions src/Http/ObjectEntity.php
@@ -0,0 +1,27 @@
<?php

namespace Apitte\Negotiation\Http;

use stdClass;

class ObjectEntity extends AbstractEntity
{

/**
* @param stdClass $data
*/
public function __construct(stdClass $data)
{
parent::__construct($data);
}

/**
* @param stdClass $data
* @return static
*/
public static function from(stdClass $data)
{
return new static($data);
}

}

0 comments on commit ea60153

Please sign in to comment.