Factory/FeaturedFactory.php
public function createEntity(array $data, $featured = false)
    {
        if (false === $featured) {
            $featured = Featured::create();
        }

        if (isset($data['featured'])) {
            $featured = $featured->setFeatureds($this->createFeaturedStreams($data['featured']));
        }

        if (isset($data['_links'])) {
            $featured = $featured->setLinks($data['_links']);
        }

        return $featured;
    }
public function createEntity(array $data, $featured = false)
    {
        if (false === $featured) {
            $featured = Featured::create();
        }

        if (isset($data['featured'])) {
            $featured = $featured->setFeatureds($this->createFeaturedStreams($data['featured']));
        }

        if (isset($data['_links'])) {
            $featured = $featured->setLinks($data['_links']);
        }

        return $featured;
    }
@param array          $data
@param false|Featured $featured

@return Featured