fenix440 / model-height
模型高度的获取器和设置器包。该包是项目 'Aedart\Model' 的一部分,访问 https://bitbucket.org/aedart/model 了解更多信息。官方子包网站(https://bitbucket.org/fenix440/model-height/)。
1.2.0
2015-06-21 18:41 UTC
Requires
- php: >=5.5.9
- aedart/validate: >=0.9.1 <2.0
Requires (Dev)
- aedart/license: 1.*
- aedart/license-file-manager: 1.*
- codeception/codeception: 2.0.*
Suggests
- aedart/model: Collection of getter- / setter-interfaces and traits for various common properties
This package is auto-updated.
Last update: 2024-09-19 09:55:59 UTC
README
为某种模型高度提供获取器和设置器包。
此包是项目 Aedart\Model
的一部分,访问 https://bitbucket.org/aedart/model 了解更多信息。
官方子包网站(https://bitbucket.org/fenix440/model-height)
内容
[目录]
何时使用此包
当您的组件(s)需要知道高度属性时
如何安装
#!console
composer require fenix440/model-height versionNumber
此包使用 composer。如果您不知道它是什么或它的工作原理,我建议在尝试使用此包之前先阅读一些相关信息。
快速开始
假设您有一个接口,例如产品,您可以扩展重量感知接口;
#!php
<?php
use Fenix440\Model\Height\Interfaces\HeightAware;
interface IPerson extends HeightAware{
// ... Remaining interface implementation not shown
}
在您的类实现中,您只需使用其中一个名称特性。
#!php
<?php
use Fenix440\Model\Height\Traits\HeightTrait;
class MyPerson implements IPerson {
use HeightTrait;
// ... Remaining implementation not shown...
}
许可证
BSD-3-Clause,阅读包含在此包中的 LICENSE 文件