Entity/AbstractBuilderInterface.php
<?php
/**
* @copyright 2014 Integ S.A.
* @license http://opensource.org/licenses/MIT The MIT License (MIT)
* @author Javier Lorenzana <javier.lorenzana@gointegro.com>
*/
namespace GoIntegro\Hateoas\Entity;
interface AbstractBuilderInterface extends GenericBuilderInterface
{
/**
* @param string $class
* @param array $fields
* @param array $relationships
* @param array $metadata
* @return \GoIntegro\Hateoas\JsonApi\ResourceEntityInterface
* @throws \GoIntegro\Hateoas\Entity\Validation\EntityConflictExceptionInterface
* @throws \GoIntegro\Hateoas\Entity\Validation\ValidationExceptionInterface
*/
public function create(
$class,
array $fields,
array $relationships = [],
array $metadata = []
);
}