Trait Socialveo\Core\models\traits\JsonProperties

Implemented bySocialveo\Core\models\Comment, Socialveo\Core\models\Media, Socialveo\Core\models\MediaQuery, Socialveo\Core\models\Network, Socialveo\Core\models\Notification, Socialveo\Core\models\Payment, Socialveo\Core\models\PaymentHistory, Socialveo\Core\models\Post, Socialveo\Core\models\StaticPages, Socialveo\Core\models\User, Socialveo\Core\models\Wallet, Socialveo\Core\models\WalletHistory

Trait JsonProperties

Method Details

decrementProperty() public method

Increment property

public integer decrementProperty ( $key, $value 1 )
$key string
$value mixed

[optional]

getProperties() public method

Returns properties

public mixed|string getProperties ( )
getProperty() public method

Returns property

public mixed getProperty ( $key )
$key string
getPropertyAsArray() public method

Returns property as array

public array getPropertyAsArray ( $key )
$key string
incrementProperty() public method

Increment property

public integer incrementProperty ( $key, $value 1 )
$key string
$value mixed

[optional]

setProperty() public method

Set property

public void setProperty ( $key, $value )
$key string
$value mixed