2017 © Pedro Peláez
 

library attributes

Attributes Trait

image

scolib/attributes

Attributes Trait

  • Wednesday, June 14, 2017
  • by klgd
  • Repository
  • 1 Watchers
  • 0 Stars
  • 597 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

attributes

StyleCI ![Latest Version on Packagist][ico-version] Software License ![Build Status][ico-travis] Coverage Status ![Quality Score][ico-code-quality] Total Downloads, (*1)

Install

Via Composer, (*2)

``` bash $ composer require scolib/attributes, (*3)


## Usage ``` php use Sco\Attributes\HasAttributesTrait; class Demo { use HasAttributesTrait; }

Method

/**
 * Get the specified log value.
 *
 * @param null|string $key
 * @param mixed       $default
 *
 * @return mixed
 */
public function getAttribute($key = null, $default = null)

/**
 * Set a given log value.
 *
 * @param array|string $key
 * @param mixed        $value
 *
 * @return bool
 */
public function setAttribute($key, $value = null)

/**
 * @param  string|int $key
 *
 * @return bool
 */
public function existsAttribute($key)

/**
 * @param  string|array $keys
 *
 * @return bool
 */
public function hasAttribute($keys)

Change log

Please see CHANGELOG for more information on what has changed recently., (*4)

Testing

bash $ composer test, (*5)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*6)

Security

If you discover any security related issues, please email slice1213@gmail.com instead of using the issue tracker., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

14/06 2017

dev-master

9999999-dev https://github.com/ScoLib/attributes

Attributes Trait

  Sources   Download

MIT

The Requires

 

The Development Requires

attributes scolib

14/06 2017

v1.0.3

1.0.3.0 https://github.com/ScoLib/attributes

Attributes Trait

  Sources   Download

MIT

The Requires

 

The Development Requires

attributes scolib

12/06 2017

v1.0.1

1.0.1.0 https://github.com/ScoLib/attributes

Attributes Trait

  Sources   Download

MIT

The Requires

 

The Development Requires

attributes scolib

10/06 2017

v1.0.0

1.0.0.0 https://github.com/ScoLib/attributes

Attributes Trait

  Sources   Download

MIT

The Requires

 

The Development Requires

attributes scolib