for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace keeko\core\event;
use keeko\core\model\Preference;
/**
*/
class PreferenceEvent {
const POST_CREATE = 'core.preference.post_create';
const POST_DELETE = 'core.preference.post_delete';
const POST_SAVE = 'core.preference.post_save';
const POST_UPDATE = 'core.preference.post_update';
const PRE_CREATE = 'core.preference.pre_create';
const PRE_DELETE = 'core.preference.pre_delete';
const PRE_SAVE = 'core.preference.pre_save';
const PRE_UPDATE = 'core.preference.pre_update';
* @var keeko.core.model
protected $preference;
* @param Preference $preference
public function __construct(Preference $preference) {
$preference
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$this->preference = preference;
}
* @return Preference
public function getPreference() {
return $this->preference;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.