org_heigl / valueobjects
一些值对象
1.0.3
2017-04-05 05:22 UTC
Requires (Dev)
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2024-09-06 07:33:04 UTC
README
值对象
一组值对象,有助于简化我的生活。
当前包含以下内容
- Gis - 用于点、矩形、尺寸、多边形和形状等地理形状的组件。
- Pixel - 像素表示
- DPI - DPI表示
待转换的内容
$valueObject = new Pixels(2000); $dimension = new DotsPerInch(72); $converter = new Converter(new DotsPerInch(72)); $converter->from(new Pixels(2000)) ->to('\\Org_Heigl\\ValueObjects\\Length\\Meter') ->convert();