Sleimanx2\Plastic\Mappings\Mappings::exits PHP Method

exits() public method

Check it the repository table exits.
public exits ( ) : mixed
return mixed
    public function exits()
    {
        return $this->schema()->hasTable($this->table);
    }

Usage Example

Example #1
0
 /**
  * Check if the mappings repository exists.
  *
  * @return mixed
  */
 public function repositoryExists()
 {
     return $this->repository->exits();
 }