@@ -203,6 +203,7 @@ class RulesChecker {
*
* @param \Cake\Datasource\EntityInterface $entity The entity to check for validity.
* @return bool
+ * @param string $mode Either 'create, 'update' or 'delete'.
* @throws \InvalidArgumentException if an invalid mode is passed.
*/
public function check(EntityInterface $entity, $mode) {
@@ -1905,6 +1905,7 @@ class Table implements RepositoryInterface, EventListenerInterface {
* the rules checker.
+ * @param string $operation Either 'create, 'update' or 'delete'.
public function checkRules(EntityInterface $entity, $operation = RulesChecker::CREATE) {