public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$contents = file_get_contents('toys.json');
\$toys = json_decode(\$contents, true);
?>

<?php foreach (\$toys as \$toy) { ?>
    <h3><?php echo \$toy['name']; ?></h3>
    <h4><?php echo \$toy['color']; ?></h4>
<?php } ?>
EOF
);
        $fileBuilder->setEntryPointFilename('index.php');
        $fileBuilder->addFileContents('toys.json', <<<EOF
[
    {
        "name": "Bacon Bone"
    },
    {
        "name": "Tennis Ball",
        "color": "Yellow"
    },
    {
        "name": "Frisbee",
        "color": "Red"
    }
]
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<!-- read from the toys.json file and set the \$toys variable -->

<?php foreach (\$toys as \$toy) { ?>
    <h3><?php echo \$toy['name']; ?></h3>
    <h4><?php echo \$toy['color']; ?></h4>
<?php } ?>
EOF
);
        $fileBuilder->setEntryPointFilename('index.php');
        $fileBuilder->addFileContents('toys.json', <<<EOF
[
    {
        "name": "Bacon Bone",
        "toy_color": "Bacon-colored"
    },
    {
        "name": "Tennis Ball",
        "toy_color": "Yellow"
    },
    {
        "name": "Frisbee",
        "toy_color": "Red"
    }
]
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$waggyPig = array(
    'name' => 'Waggy Pig',
    'weight' => 10,
    'age' => 7,
    'bio' => 'Sleepy white fluffy dog'
);
?>

<h2><?php echo \$waggyPig['name']; ?></h2>
<div class="age"><?php echo \$waggyPig['age']; ?></div>
<div class="weight"><?php echo \$waggyPig['weight']; ?></div>
<div class="breed">
    <!-- print the bred here -->
</div>
<p>
    <?php echo \$waggyPig['bio']; ?>
</p>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('new_toy.php', <<<EOF
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php echo '!emosewaP yltcefrruP erA steP ruO'; ?>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('homepage.twig', <<<EOF
<h2>
    <!-- print the variable here -->
</h2>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('new_toy.php', <<<EOF
<h3>
Print the browser information of your user here
</h3>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<!-- create the variable here -->

<h2>
    <!-- print the variable here -->
</h2>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('aboutUs.php', <<<EOF
EOF
);
        $fileBuilder->setEntryPointFilename('aboutUs.php');
        $fileBuilder->addFileContents('about.php', <<<EOF
<h1>Yea! About us!</h1>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<!-- save the doglife.txt file -->

<h2>
    <!-- print the doglife.txt contents here -->
</h2>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$walker1 = 'Kitty';
\$walker2 = 'Tiger';
\$walker3 = 'Jay';

\$dogWalkers = array(\$walker1, \$walker2, \$walker3);
?>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$toys = array();
\$toys[] = array('name' => 'Bacon Bone', 'color' => 'Bacon-colored');
\$toys[] = array('name' => 'Tennis Ball', 'color' => 'Yellow');
\$toys[] = array('name' => 'Frisbee', 'color' => 'Red');
?>

<!-- Add a foreach here -->
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<h2>
    <!-- print the variable here -->
</h2>
EOF
);
        $fileBuilder->addFileContents('bootstrap.php', <<<EOF
<?php \$whatILove = "Puppies"; require("index.php");
EOF
);
        $fileBuilder->setEntryPointFilename('bootstrap.php');
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF

<?php
\$airpupTag = 'I luv kittens'
\$yearFounded = 2015;

<h2>
    <?php echo \$airpupTag; ?> (founded <?php echo \$yearFonded; ?>)
</h2>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('new_toy.php', <<<EOF
<!-- set variables and var_dump() up here -->

<form action="/new_toy.php" method="POST">
    <input type="text" name="toy_name" />
    <textarea name="description"></textarea>

    <button type="submit">Add toy</button>
</form>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('aboutUs.php', <<<EOF
<!-- require the header here -->

<h1>About Us</h1>

<p>
We're just a couple of <mark>crazy</mark> cats with a dog-gone good idea!
</p>

<address>
  <strong>AirpupNMeow</strong><br>
  555 Main Street<br>
  San Francisco, CA 94107<br>
  <abbr title="Phone">P:</abbr> (123) 456-7890
</address>

<!-- require the footer here -->
EOF
);
        $fileBuilder->setEntryPointFilename('aboutUs.php');
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
    \$airpupTagLine = 'We luv puppies!';
?>

<!-- HEADER CODE STARTS HERE -->
<html>
<head>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" />
</head>
<body>
    <div class="container">
<!-- HEADER CODE ENDS HERE -->

    <h1>Welcome to AirPupNMeow.com!</h1>
    <h3><?php echo \$airpupTagLine; ?></h3>

<!-- FOOTER CODE STARTS HERE -->
\t<footer>
        &copy; 2015 AirPupNMeow.com
\t</footer>
\t</div>
</body>
</html>
<!-- FOOTER CODE STARTS HERE -->
EOF
);
        $fileBuilder->addFileContents('layout/header.php', <<<EOF
<!-- Move the HEADER code into here -->
EOF
);
        $fileBuilder->addFileContents('layout/footer.php', <<<EOF
<!-- Move the FOOTER code into here -->
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$waggyPig = array('Waggy Pig', 10, 7, 'Sleepy white fluffy dog');
?>

<h2><?php echo \$waggyPig[0]; ?></h2>
<div class="age"><?php echo \$waggyPig[2]; ?></div>
<div class="weight"><?php echo \$waggyPig[1]; ?></div>
<p>
    <?php echo \$waggyPig[3]; ?>
</p>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$contents = file_get_contents('toys.json');
\$toys = json_decode(\$contents, true);
?>

<?php foreach (\$toys as \$toy) { ?>
    <h3><?php echo \$toy['name']; ?></h3>
    <h4>
        <?php
        if (array_key_exists('color', \$toy) && \$toy['color'] = 'surprise') {
            echo 'Surprise Color!';
        } elseif !array_key_exists('color', \$toy) {
            echo 'no color';
        } else {
            echo \$toy['color'];
        }
        ?>
    </h4>
<?php } ?>
EOF
);
        $fileBuilder->setEntryPointFilename('index.php');
        $fileBuilder->addFileContents('toys.json', <<<EOF
[
    {
        "name": "Bacon Bone"
    },
    {
        "name": "Tennis Ball",
        "color": "Yellow"
    },
    {
        "name": "Frisbee",
        "color": "surprise"
    }
]
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$pets = array(
    array('name' => 'Pico de Gato', 'bio' => 'Spicy kitty'),
);
\$pets[] = array('name' => 'Waggy Pig', 'bio' => 'Little white dog');
\$pets[] = array('name' => 'Pancake', 'bio' => 'Breakfast is my favorite!');
?>

<h1>
    <!-- Print Pancake's bio here -->
</h1>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<h4>
    <!-- replace the XXXX with the real number of toys using count -->
    Selling XXXX Toys
</h4>

<?php
\$toys = array();
\$toys[] = array('name' => 'Bacon Bone', 'color' => 'Bacon-colored');
\$toys[] = array('name' => 'Tennis Ball', 'color' => 'Yellow');
\$toys[] = array('name' => 'Frisbee', 'color' => 'Red');
?>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('new_toy.php', <<<EOF
<?php
\$name = \$_POST['name'];
\$description = \$_POST['description'];

var_dump(\$name, \$description);
?>

<form action="/new_toy.php" method="POST">
    <input type="text" name="toy_name" />
    <textarea name="description"></textarea>

    <button type="submit">Add toy</button>
</form>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
\$airpupTag = 'I luv puppies';
?>

<h2><?php echo \$airpupTag; ?></h2>

<h3>
    <span>
        <!-- print a random number here -->
    </span>

    pets waiting to meet you
</h3>
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('new_toy.php', <<<EOF
<?php
require 'functions.php';

\$name = \$_POST['name'];
\$description = \$_POST['description'];

\$toys = get_great_pet_toys();
\$toys[] = array('name' => \$name, 'description' => \$description);
\$json = json_encode(\$toys, JSON_PRETTY_PRINT);
file_put_contents('toys.json', \$json);
?>

<form action="/new_toy.php" method="POST">
    <input type="text" name="toy_name" />
    <textarea name="description"></textarea>

    <button type="submit">Add toy</button>
</form>
EOF
);
        $fileBuilder->setEntryPointFilename('new_toy.php');
        $fileBuilder->addFileContents('functions.php', <<<EOF
<?php
function get_great_pet_toys()
{
    \$contents = file_get_contents('toys.json');
    \$toys = json_decode(\$contents, true);

    return \$toys;
}
EOF
);
        $fileBuilder->addFileContents('toys.json', <<<EOF
[
    {
        "name": "Bacon Bone",
        "description": "What could be better?"
    },
    {
        "name": "Tennis Ball",
        "description": "Throw, fetch, throw, fetch, throw, fetch..."
    },
    {
        "name": "Frisbee",
        "description": "Go Deep!"
    }
]
EOF
);
        return $fileBuilder;
    }
    public function getFileBuilder()
    {
        $fileBuilder = new FileBuilder();
        $fileBuilder->addFileContents('index.php', <<<EOF
<?php
function get_great_pet_toys()
{
    \$contents = file_get_contents('toys.json');
    \$toys = json_decode(\$contents, true);

    return \$toys;
}

\$toys = get_great_pet_toys();
?>

<?php foreach (\$toys as \$toy) { ?>
    <h3><?php echo \$toy['name']; ?></h3>
    <h4><?php echo \$toy['color']; ?></h4>
<?php } ?>
EOF
);
        $fileBuilder->setEntryPointFilename('index.php');
        $fileBuilder->addFileContents('lib/functions.php', <<<EOF
<!-- put the get_great_pet_toys() function here -->
EOF
);
        $fileBuilder->addFileContents('toys.json', <<<EOF
[
    {
        "name": "Bacon Bone",
        "color": "Bacon Colored"
    },
    {
        "name": "Tennis Ball",
        "color": "Yellow"
    },
    {
        "name": "Frisbee",
        "color": "Multiple Colors"
    }
]
EOF
);
        return $fileBuilder;
    }
 public function getFileBuilder()
 {
     $fileBuilder = new FileBuilder();
     $fileBuilder->addFileContents('index.php', '');
     return $fileBuilder;
 }