src/Leevel/Database/Ddd/Entity.php
public function withProps(array $data): IEntity
    {
        foreach ($data as $prop => $value) {
            $this->offsetSet($prop, $value);
        }

        return $this;
    }
public function withProps(array $data): IEntity
    {
        foreach ($data as $prop => $value) {
            $this->offsetSet($prop, $value);
        }

        return $this;
    }
批量修改属性.

@param array $data

@return $this