Empty Block

Method set


Info
  public function set (string $member, mixed $data): self; 

Sets desired value to existing, declared class property.
Altering data for static properties is not possible, will not work.

Arguments
  • @member - Name of already declared class property.
  • @data - Value for the predefined member.
Return value

Returns Funcdown object so that method chaining can occur if plausable.

Examples
  
  // To set starting point for tab depth greater than 0,
  // then parse output and print/release data ...

  echo $funcdown-> set
    ('tab_depth', 1)-> parse
      ($funcdownSource)-> release();


  // To increase the default number of "ident_eol" spaces,
  // then parse output and print/release data ...

  echo $funcdown-> set
    ('ident_eol', 4)-> parse
      ($funcdownSource)-> release();

  
Empty Block
Empty Block
Empty Block
Empty Block