PHPackages                             pinekta/geta-setta - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pinekta/geta-setta

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

pinekta/geta-setta
==================

This library 'geta-setta' provides getter method and setter method.

0.9.0(7y ago)110MITPHPPHP ^5.4 || ^7.0

Since Aug 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pinekta/geta-setta)[ Packagist](https://packagist.org/packages/pinekta/geta-setta)[ Docs](http://pinekta.github.io/geta-setta/)[ RSS](/packages/pinekta-geta-setta/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

geta-setta
==========

[](#geta-setta)

[![Build status](https://camo.githubusercontent.com/4a17dece78c88c60e2a0234047b17ffcb9a677a6f908202d494e5feddfc39f87/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f70696e656b74612f676574612d73657474612e737667)](https://camo.githubusercontent.com/4a17dece78c88c60e2a0234047b17ffcb9a677a6f908202d494e5feddfc39f87/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f70696e656b74612f676574612d73657474612e737667)[![Coverage Status](https://camo.githubusercontent.com/f4811ac253cffb0f2f36a7447ad256a31e4b9461fb839d84508a6d1b76b09165/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f70696e656b74612f676574612d73657474612f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pinekta/geta-setta?branch=master)[![License](https://camo.githubusercontent.com/7eef76450cd99473d8b29c075a8efd5418cec41fe7ba8db98ef544755c8fbd7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70696e656b74612f676574612d73657474612e737667)](https://camo.githubusercontent.com/7eef76450cd99473d8b29c075a8efd5418cec41fe7ba8db98ef544755c8fbd7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f70696e656b74612f676574612d73657474612e737667)[![PHP Version](https://camo.githubusercontent.com/34e944773bf24ce1bdd3f9c02877d16c9530b9f67b2eeda3d9141d64da09f3a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e342d626c75652e737667)](https://camo.githubusercontent.com/34e944773bf24ce1bdd3f9c02877d16c9530b9f67b2eeda3d9141d64da09f3a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e342d626c75652e737667)[![Packagist Version](https://camo.githubusercontent.com/80088b07c50a947b2e62dec64b9dc0c16a4b3ac4058f959ef86cefef0283f701/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696e656b74612f676574612d73657474612e737667)](https://camo.githubusercontent.com/80088b07c50a947b2e62dec64b9dc0c16a4b3ac4058f959ef86cefef0283f701/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70696e656b74612f676574612d73657474612e737667)

This library 'geta-setta' provides getter method and setter method.

Using the magic method `__call` when be invoked inaccessible method, if the prefix of the method name is `set`, an argument value is set to the property. And if the prefix of the method name is `get`, a value of the property is returned.

When those prefix is nothing, if there is the argument, an argument value is set to the property with the same name as the method name. And if there is not the argument, a value of the property with the same name as the method name is returned.

geta-setta requires PHP &gt;= 5.4.0.

Installation
------------

[](#installation)

```
$ composer require pinekta/geta-setta

```

Usage
-----

[](#usage)

```
