Skip to content

Commit

Permalink
Typed class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Jan 10, 2024
1 parent 407743a commit 79cb558
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tools/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

class builder{
/*CONFIG START*/
private $destinationFolder = 'htdocs/';
private $dir = '';
private $blogposts = 'blogposts/';
private $dirArticles = 'articles/';
private $dirPages = 'pages/';
private $cssPath = 'css/style.css';
private $css = '';
private string $destinationFolder = 'htdocs/';
private string $dir = '';
private string $blogposts = 'blogposts/';
private string $dirArticles = 'articles/';
private string $dirPages = 'pages/';
private string $cssPath = 'css/style.css';
private string $css = '';
private $justCopy = ['favicon.ico','imgs','css','js','robots.txt','uploads'];
private $generateForIPFS = false;
private bool $generateForIPFS = false;
/*CONFIG END*/

function __construct(string $dir='') {
Expand Down Expand Up @@ -411,10 +411,10 @@ private function generateFile(string $name, string $content) :void {
}

class page{
private $content = '';
private $generateForIPFS = false;
public $navRight = '';
private $title = '';
private string $content = '';
private bool $generateForIPFS = false;
public string $navRight = '';
private string $title = '';
function __construct(string $title, string $css='', bool $ipfs=false, string $relativePath='/'){
$this->title = $title;
$this->generateForIPFS = $ipfs;
Expand Down

0 comments on commit 79cb558

Please sign in to comment.