addString() public method

Add a string field to the schema
public addString ( $str_name, boolean $bol_index = TRUE ) : Schema
$str_name
$bol_index boolean
return Schema
 public function __construct()
 {
     $schema = new Schema('Credential');
     $schema->addString('email');
     $schema->addString('service');
     $schema->addString('value', false);
     $this->store = new Store($schema);
     $this->store->setEntityClass(Credential::class);
 }
Beispiel #2
0
 public function __construct()
 {
     $schema = new Schema('Watch');
     $schema->addString('value', false);
     $this->store = new Store($schema);
     $this->store->setEntityClass(Watch::class);
 }