fenix440 / model-intensity
模型强度获取器和设置器包。此包是项目 'Aedart\Model' 的一部分,访问 https://bitbucket.org/aedart/model 了解更多信息。官方子包网站(https://bitbucket.org/fenix440/model-intensity/)。
1.1.0
2015-06-21 18:45 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:08:18 UTC
README
某种模型强度的获取器和设置器包。
此包是项目 Aedart\Model
的一部分,访问 https://bitbucket.org/aedart/model 了解更多信息。
官方子包网站(https://bitbucket.org/fenix440/model-intensity)
内容
[目录]
何时使用此包
当你的组件(们)需要了解某种强度时
如何安装
#!console
composer require fenix440/model-intensity versionNumber
此包使用 composer。如果你不知道这是什么或它是如何工作的,我在尝试使用此包之前建议你阅读一些相关信息。
快速开始
假设你有一个接口,例如产品,你可以扩展强度感知接口;
#!php
<?php
use Fenix440\Model\Intensity\Interfaces\IntensityAware;
interface IExercise extends IntensityAware{
// ... Remaining interface implementation not shown
}
在你的类实现中,简单地使用其中一个名称特质。
#!php
<?php
use Fenix440\Model\Intensity\Traits\IntensityTrait;
class Exercise implements IExercise {
use IntensityTrait;
// ... Remaining implementation not shown...
}
许可证
BSD-3-Clause,请阅读此包中包含的 LICENSE 文件