source/Scaffolder/Declarations/EntityDeclaration.php
public function addField(string $name, $value)
    {
        $schema = $this->constant('SCHEMA')->getValue();
        $schema[$name] = $value;
        $this->constant('SCHEMA')->setValue($schema);
    }
public function addField(string $name, $value)
    {
        $schema = $this->constant('SCHEMA')->getValue();
        $schema[$name] = $value;
        $this->constant('SCHEMA')->setValue($schema);
    }
public function addField ( string $ name , $ value ) { $ schema = $ this -> constant ( 'SCHEMA' ) -> getValue ( ) ; $ schema [ $ name ] = $ value ; $ this -> constant ( 'SCHEMA' ) -> setValue ( $ schema ) ; }
Add field into schema.

@param string $name
@param mixed  $value
Add field into schema .