src/Rede/CreateTrait.php
static public function create(stdClass $data)
    {
        $obj = new self();
        $vars = get_object_vars($obj);

        foreach ($data as $property => $value) {
            if (array_key_exists($property, $vars)) {
                $obj->$property = $value;
            }
        }

        return $obj;
    }
static public function create(stdClass $data)
    {
        $obj = new self();
        $vars = get_object_vars($obj);

        foreach ($data as $property => $value) {
            if (array_key_exists($property, $vars)) {
                $obj->$property = $value;
            }
        }

        return $obj;
    }
@param stdClass $data

@return mixed