Created
October 17, 2013 00:30
-
-
Save dadamssg/7017352 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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