src/Entity/Factory/StatusFactory.php
public function entity(array $data = [])
    {
        $status = new Status();
        foreach ($data as $key => $value) {
            $property = Inflector::variable($key);
            $status->$property = $value;
        }

        return $status;
    }
public function entity(array $data = [])
    {
        $status = new Status();
        foreach ($data as $key => $value) {
            $property = Inflector::variable($key);
            $status->$property = $value;
        }

        return $status;
    }
@param array $data

@return Status