Skip to content

Instantly share code, notes, and snippets.

@dadamssg
Created October 17, 2013 00:30
Show Gist options
  • Save dadamssg/7017352 to your computer and use it in GitHub Desktop.
Save dadamssg/7017352 to your computer and use it in GitHub Desktop.
<?php namespace ProgrammingAreHard\Data\Validators;
interface HasModelRules {
/**
* Get the validation rules for the model when creating
*
* @return array
*/
public function getRulesForCreate();
/**
* Get the validation rules for the model when updating
*
* @return array
*/
public function getRulesForUpdate();
/**
* Get all fields that can be persisted
*
* @return array
*/
public function getFields();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment