check() public method

If the type is not valid or the ID is not valid it will throw an exception: Security.
public check ( redbeanphp\OODBBean $bean ) : void
$bean redbeanphp\OODBBean the bean that needs to be checked
return void
Example #1
0
 /**
  * Checks whether a OODBBean bean is valid.
  * If the type is not valid or the ID is not valid it will
  * throw an exception: Security.
  *
  * @param OODBBean $bean the bean that needs to be checked
  *
  * @return void
  */
 public function check(OODBBean $bean)
 {
     $this->repository->check($bean);
 }