
<div class="codehilite"><pre><span></span><span class="nv">$bookIndex</span><span class="o">-&gt;</span><span class="na">add</span><span class="p">([</span>
    <span class="k">new</span> <span class="nx">TextField</span><span class="p">(</span><span class="s1">&#39;title&#39;</span><span class="p">,</span> <span class="s1">&#39;Tale of Two Cities&#39;</span><span class="p">),</span>
    <span class="k">new</span> <span class="nx">TextField</span><span class="p">(</span><span class="s1">&#39;author&#39;</s