for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Author: Nil Portugués Calderó <[email protected]>
* Date: 10/16/15
* Time: 8:59 PM.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace NilPortugues\Laravel5\HalJsonSerializer\Mapper;
class Mapper extends \NilPortugues\Api\Mapping\Mapper
{
* @param string|array $mappedClass
* @return array
protected function buildMapping($mappedClass)
return (\is_string($mappedClass) && \class_exists($mappedClass, true)) ?
MappingFactory::fromClass($mappedClass) :
MappingFactory::fromArray($mappedClass);
}