GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bluzphp/container: Container Package

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
src/Container
src/Container
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.scrutinizer.yml
.scrutinizer.yml
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 

Repository files navigation

Container Component

Achievements

PHP >= 8.2+

Latest Stable Version

Build Status

Scrutinizer Code Quality

Total Downloads

License

Usage

Example of the Registry class:

namespace Bluz\Registry;

use Bluz\Container;

class Registry {
    use Container\Container;
    use Container\JsonSerialize;
    use Container\RegularAccess;
}

Methods

Public methods of the Container\Container:

  • setFromArray(array $data)
  • toArray()
  • resetArray()

Protected methods of the Container\Container:

  • doSetContainer(string $key, mixed $value) - set the value by the key
  • doGetContainer(string $key) – if the container has the key, then it returns the value, otherwise null
  • doContainsContainer(string $key) - check the container for the key
  • doDeleteContainer(string $key) - remove the value by the key

Methods of the Container\ArrayAccess (implementation of the interface ArrayAccess):

  • offsetSet($offset, $value)
  • offsetExists($offset)
  • offsetUnset($offset)
  • offsetGet($offset)

Methods of the Container\MagicAccess:

  • __set($key, $value)
  • __get($key)
  • __isset($key)
  • __unset($key)

Methods of the Container\RegularAccess:

  • set($key, $value)
  • get($key)
  • has($key)
  • remove($key)

Methods of the Container\JsonSerialize

  • jsonSerialize() - implementation of the interface JsonSerializable

About

Container Package

Topics

bluz-packagephpphp-library

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.