<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>Pv Gomes Developer</title><description>TI de uma maneira simples mas não de forma simplista</description><managingEditor>noreply@blogger.com (Anonymous)</managingEditor><pubDate>Wed, 24 Sep 2025 05:47:16 -0300</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">120</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://profpv.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>TI de uma maneira simples mas não de forma simplista</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>Trabalhando nas nuvens, integrando o SDK da AWS para S3 com PHP</title><link>http://profpv.blogspot.com/2014/12/trabalhando-nas-nuvens-integrando-o-sdk.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 16 Dec 2014 21:17:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-4496930247217126120</guid><description>&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
Olá pessoal. Nesse artigo vamos mostrar algo que anda sendo bem utilizado no dia a dia dos desenvolvedores&amp;nbsp;em geral, que é a integração com a nuvem. Nesse caso em específico com os percusores dela a toda poderosa Amazon.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-uZR8gs5R2ko/VJC9jhkjFSI/AAAAAAAAAQg/A5x9R9oJzlQ/s1600/s3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/-uZR8gs5R2ko/VJC9jhkjFSI/AAAAAAAAAQg/A5x9R9oJzlQ/s1600/s3.jpeg" height="156" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
Legal, mas ai você pergunta o que é o S3?&lt;br /&gt;&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
Aqui vai uma pequena descrição:&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
"O Amazon S3 é o armazenamento para a internet. Ele foi projetado para facilitar a computação de escala na web para os desenvolvedores.&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
O Amazon S3 fornece uma interface simples de serviços da web que pode ser usada para armazenar e recuperar qualquer quantidade de dados, a qualquer momento e de qualquer lugar na web. Ele concede acesso a todos os desenvolvedores para a mesma infraestrutura altamente escalável, confiável, segura, rápida e econômica que a Amazon utiliza para executar sua própria rede global de sites da web. O serviço visa maximizar os benefícios de escala e poder passar esses benefícios para os desenvolvedores." (http://aws.amazon.com/pt/s3/)&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
Pois bem, por onde eu começo a fazer a integração?&lt;br /&gt;A Amazon desenvolveu um SDK PHP para todos os serviços da AWS sendo assim, vamos utilizar esse client para desenvolver nossa integração.&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
Talvez você esteja dizendo nesse momento "Vai ser díficil integrar esse SDK no meu framework, será que não existe um client da S3 feito por ele?". Bem minha resposta sobre isso é que existe sim, no meu caso eu fui fazer a integração em um sistema legado&amp;nbsp;que foi feito em Zend Framework 1.12 e então pensei em utilizar o client desse framework "Full Stack",&amp;nbsp;e o que eu conclui depois de 1 dia integrando é que eu NÃO devo utilizar esse client extremamente descontinuado e com vários metódos não implementados. A verdade é que a Zend reconheceu quando lançou o ZF2 que não são eles que devem fornecer esse client, pessoas especializadas nisso já vão fazer, deixa o pessoal focado em Amazon cuidar disso, e tem mais, com o composer tudo fica mais fácil então relaxa :).&lt;/div&gt;
&lt;div style="color: #444444; font-family: 'Open Sans', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.714285714; margin-bottom: 1.714285714rem;"&gt;
"Pow, mas composer no ZF1? Por que não? Basta adicionar a vendor no autoload e toca o barco".&lt;br /&gt;&lt;br /&gt;Claro que a proposta desse artigo não é falar sobre arquitetura de sistema pq se fosse eu provavelmente não utilizaria o meu legado e partiria para outra abordagem. Mas a questão aqui é que eu precisava em pouco tempo alterar a implementação nesse sistema legado, que utilizava as funções de file do php e fazia a persistencia dos arquivos em uns diretorios no mesmo servidor da aplicação (DEUSSS PERDOE QUEM NÃO IMPLEMENTOU UMA APLICAÇÃO FLEXIVEL O BASTANTE, NÃO CONHECIAMOS AS NUVENS).&lt;br /&gt;&lt;br /&gt;Pois bem então a primeira abordagem no meu caso foi colocar o composer no ZF1 e isso foi algo bem simples, em 2 minutinhos eu ja tinha tudo funcionando com o SDK prontinho para meu framework utilizar.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;continua...&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://3.bp.blogspot.com/-uZR8gs5R2ko/VJC9jhkjFSI/AAAAAAAAAQg/A5x9R9oJzlQ/s72-c/s3.jpeg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Iniciando com o Docker</title><link>http://profpv.blogspot.com/2014/09/iniciando-com-o-docker.html</link><category>Docker</category><category>linux</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 8 Sep 2014 10:54:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-3151530392584614605</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Acredito que precisamos estar ligados em tudo aquilo que acontece no mundo da TI, precisamos ser cuidadosos com as novidades mas acima de tudo ter uma opinião bem fundamentada sobre as coisas. Eu comecei esse post com essa frase pois tenho passado por um processo profissional em que tenho conhecido muita coisa nova (principalmente aquilo que se refere a ferramentas para escalabilidade), sempre que posso eu ainda leio sobre qualidade de código, design e arquitetura até porque, é disso que eu gosto e acredito que seja meu minha melhor qualidade. Mas, como eu já disse precisamos estar ligado no mundo e pensando nisso vou tentar iniciar uma serie de posts (não quero prometer nada) em que eu falo sobre ambiente de desenvolvimento, tanto em dev como live. A principio eu queria ter uma versatilidade em meus ambientes de desenvolvimento sem estar muito atrelado a uma unica máquina, e ai eu fui pesquisar sobre a Vagrant que, é uma forma de virtualizar um ambiente bem feito, mas que no fim das contas é muito pesado para aquilo que eu preciso fazer e para meu hardware em alguns momentos. Foi então que no PHP Conference 2013 eu vi a grande figura &lt;a href="http://eltonminetto.net/" target="_blank"&gt;Elton Minetto&lt;/a&gt; falando sobre Docker, ele deu apenas uma pincelada mas já me interessou ir pesquisar pois a proposta dele me pareceu bem interessante. Mas espera ai, qual é a proposta dele afinal?&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: right;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZUWJg42O3-Jl2PedpzdApaznV1XQLOaEWVa8BSsctiwUrnJ98TyIUENlNfBzbEmLHSWphMd56KsrBBP-UK9BkZTuR-ZQeHxf0i2rMImLsLsYfKfeSnyxdsASHKmYW3c3bN44kVPnF5w/s1600/docker.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZUWJg42O3-Jl2PedpzdApaznV1XQLOaEWVa8BSsctiwUrnJ98TyIUENlNfBzbEmLHSWphMd56KsrBBP-UK9BkZTuR-ZQeHxf0i2rMImLsLsYfKfeSnyxdsASHKmYW3c3bN44kVPnF5w/s1600/docker.png" height="308" width="400" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;Segundo o próprio site o Docker é uma plataforma aberta para aplicativos distribuídos para desenvolvedores e administradores de sistemas. &amp;nbsp;Ele é uma abstração, que adiciona recursos e simplifica o uso dos linux containers (LXC), que são uma forma de isolamento de processos e sistemas, é quase uma virtualização, porém mais leve e integrada ao host. Linux-only. O Docker te permite criar pequenas aplicações chamadas de "containers", que isolam o Sistema Operacional base e toda a pilha de dependência de sua app de forma leve em espaço e consumo. Muitas pessoas dizem que ele é o Vagrant para produção pois são VMs muito leves, que podem rodar em cima de outras VMs. Imagina o seu uso? Podemos aplica-lo em diversas aplicações com ambientes diferentes (apache, nginx, tomcat...) em uma mesma maquina ou vm e sem perder muito em recursos.&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Alem de resolver o nosso problema em ambientes dev/live ele tem mais(tipo vendedor hein). O Docker trabalha com um sistema de arquivos empilhaveis, que permite que os passos para configuração do container funcione de forma incremental. Tipo os o versionamento do git/mercurial. Então imagine o processo, atualizou uma lib: commit. Mudou a versão do php: commit, terminou uma nova versão: Tag. E depois de tudo isso é só dar um push, temos uma atualização compartilhada dentro das pessoas que participam do seu projeto ;) .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ok, estou convencido o Docker é fóda! Como eu começo?&lt;br /&gt;&lt;br /&gt;Antes de começar, o Docker é para Linux então, se vc não usa linux vai ter que virtualizar ;)&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1º Instalando&lt;/span&gt;&lt;/div&gt;
&lt;h3 id="installation" style="background-color: white; color: #394d54; font-weight: 400; line-height: 1.7; margin: 10px 0px 4px; text-rendering: optimizelegibility;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;No meu caso, eu estou usando o Ubuntu 14.04, então é mais do mesmo, instale o docker.io via apt-get e crie um link para usar docker, caso vc queira usar a ultima versão sempre de uma olhada &lt;a href="https://docs.docker.com/installation/ubuntulinux/#ubuntu-trusty-1404-lts-64-bit" target="_blank"&gt;aqui&lt;/a&gt;:&lt;/span&gt;&lt;/h3&gt;
&lt;pre class="prettyprint well" style="background-color: #fcfcfc; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(227, 227, 227); color: #333333; font-family: Monaco, Consolas, 'Lucida Console', monospace; font-size: 14px; line-height: 23.799999237060547px; margin-bottom: 20px; min-height: 20px; overflow-x: auto; padding: 8px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;"&gt;&lt;code style="background-color: transparent; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; line-height: 1.7; overflow-wrap: normal; padding: 0px; white-space: pre;"&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;$ sudo apt&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="kwd" style="color: #1e347b; line-height: 1.7;"&gt;get&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt; update
$ sudo apt&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="kwd" style="color: #1e347b; line-height: 1.7;"&gt;get&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt; install docker&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;io
$ sudo ln &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;sf &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;usr&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;bin&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;docker&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;io &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;usr&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="kwd" style="color: #1e347b; line-height: 1.7;"&gt;local&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;bin&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;docker
$ sudo sed &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;i &lt;/span&gt;&lt;span class="str" style="color: #dd1144; line-height: 1.7;"&gt;'$acomplete -F _docker docker'&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;etc&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;bash_completion&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;d&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;/&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;docker&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;io&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style="background-color: white; margin-bottom: 1em;"&gt;
&lt;span style="color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: normal;"&gt;2º&amp;nbsp;&lt;/span&gt;&lt;span style="background-color: transparent;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Em seguida, adicione a chave do repositório Docker para o seu chaveiro local.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="prettyprint well" style="background-color: #fcfcfc; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(227, 227, 227); color: #333333; font-family: Monaco, Consolas, 'Lucida Console', monospace; font-size: 14px; line-height: 23.799999237060547px; margin-bottom: 20px; min-height: 20px; overflow-x: auto; padding: 8px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;"&gt;&lt;code style="background-color: transparent; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; line-height: 1.7; overflow-wrap: normal; padding: 0px; white-space: pre;"&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;$ sudo apt&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;key adv &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;--&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;keyserver hkp&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;:&lt;/span&gt;&lt;span class="com" style="color: #93a1a1; line-height: 1.7;"&gt;//keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style="background-color: white; margin-bottom: 1em;"&gt;
&lt;span style="color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; line-height: normal;"&gt;3º Agora a&lt;/span&gt;&lt;span style="background-color: transparent;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;dicione o repositório Docker ao seu sources list, atualize e instale o pacote&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: #fcfcfc; color: #394d54; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 14px; line-height: 23.799999237060547px; white-space: pre-line;"&gt;lxc-docker&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="prettyprint well" style="background-color: #fcfcfc; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-top-left-radius: 4px; border-top-right-radius: 4px; border: 1px solid rgb(227, 227, 227); color: #333333; font-family: Monaco, Consolas, 'Lucida Console', monospace; font-size: 14px; line-height: 23.799999237060547px; margin-bottom: 20px; min-height: 20px; overflow-x: auto; padding: 8px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;"&gt;&lt;code style="background-color: transparent; border: 0px; color: inherit; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; line-height: 1.7; overflow-wrap: normal; padding: 0px; white-space: pre;"&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;$ sudo sh &lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;c &lt;/span&gt;&lt;span class="str" style="color: #dd1144; line-height: 1.7;"&gt;"echo deb https://get.docker.io/ubuntu docker main\
&amp;gt; /etc/apt/sources.list.d/docker.list"&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;
$ sudo apt&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="kwd" style="color: #1e347b; line-height: 1.7;"&gt;get&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt; update
$ sudo apt&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="kwd" style="color: #1e347b; line-height: 1.7;"&gt;get&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt; install lxc&lt;/span&gt;&lt;span class="pun" style="color: #93a1a1; line-height: 1.7;"&gt;-&lt;/span&gt;&lt;span class="pln" style="color: #48484c; line-height: 1.7;"&gt;docker&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; line-height: 1.43; margin-bottom: 16px; margin-top: 1em; position: relative; text-align: left;"&gt;
4º Adicioner seu usuario no grupo do docker&lt;/div&gt;
&lt;div style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; font-size: 16px; line-height: 25.600000381469727px; margin-bottom: 16px;"&gt;
Assim vc nao vai precisar ficar fazendo sudo docker lalala.&lt;/div&gt;
&lt;pre lang="shell" style="background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;"&gt;&lt;code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: inherit; margin: 0px; padding: 0px; word-break: normal; word-wrap: normal;"&gt;sudo gpasswd -a myusername docker
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; line-height: 1.43; margin-bottom: 16px; margin-top: 1em; position: relative;"&gt;
&lt;a aria-hidden="true" class="anchor" href="https://github.com/tricae-br/master/wiki/Docker#5%C2%BA-autentique-se-no-docker-hub" name="user-content-5%C2%BA-autentique-se-no-docker-hub" style="background-color: transparent; bottom: 0px; box-sizing: border-box; color: #4183c4; display: block; font-size: 1.5em; left: 0px; margin-left: -30px; padding-left: 30px; padding-right: 6px; position: absolute; text-decoration: none; top: 0px;"&gt;&lt;/a&gt;&lt;span style="font-size: small; font-weight: normal;"&gt;5º Autentique-se no docker hub (se n tem conta crie uma &lt;a href="https://hub.docker.com/account/signup/" target="_blank"&gt;aqui&lt;/a&gt;)&lt;/span&gt;&lt;/h3&gt;
&lt;pre lang="shell" style="background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;"&gt;&lt;code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: inherit; margin: 0px; padding: 0px; word-break: normal; word-wrap: normal;"&gt;docker login
&lt;/code&gt;&lt;/pre&gt;
&lt;h3 style="background-color: white; box-sizing: border-box; color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; line-height: 1.43; margin-bottom: 16px; margin-top: 1em; position: relative;"&gt;
&lt;a aria-hidden="true" class="anchor" href="https://github.com/tricae-br/master/wiki/Docker#6%C2%BA-suba-o-docker-j%C3%A1-fazendo-o-pull-da-nossa-imagem-utilizando-a-vers%C3%A3o-que-vc-precisa-de-php" name="user-content-6%C2%BA-suba-o-docker-j%C3%A1-fazendo-o-pull-da-nossa-imagem-utilizando-a-vers%C3%A3o-que-vc-precisa-de-php" style="background-color: transparent; bottom: 0px; box-sizing: border-box; color: #4183c4; display: block; font-size: 1.5em; left: 0px; margin-left: -30px; padding-left: 30px; padding-right: 6px; position: absolute; text-decoration: none; top: 0px;"&gt;&lt;/a&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-size: small;"&gt;6º Suba um container do docker que eu fiz com php-fpm e nginx em sua maquina, a primeira vez que vc rodar esse command vai demorar um pouco pois será feito um pull da imagem.&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;pre lang="shell" style="background-color: #f7f7f7; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; box-sizing: border-box; color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; line-height: 1.45; margin-bottom: 16px; overflow: auto; padding: 16px; word-wrap: normal;"&gt;&lt;code style="background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: inherit; margin: 0px; padding: 0px; word-break: normal; word-wrap: normal;"&gt;docker run -v /var/www:/usr/share/nginx/www:rw --expose=80 --dns=127.0.0.1 -i -t pvgomes/php /bin/bash
&lt;/code&gt;&lt;/pre&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;Preste atenção em algumas coisas desse commando, primeira fazemo um docker run (executar o container) depois passamos um diretorio /var/www fazendo um link com&amp;nbsp;&lt;span style="line-height: inherit;"&gt;/usr/share/nginx/www e dando premissão de leitura e escrita (rw), isso significa que vamos fazer um link de um path do container com a sua máquina (assim na configuração do nginx apontariamos para /share/nginx/www/seuprojeto), depois expomos a porta 80 e passamos o dns. Pronto vc tem um container do docker rodando :)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: inherit;"&gt;Meu objetivo nesse post foi apenas introduzir o Docker, no próximo vamos passar a utilizar o container de fato.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: inherit;"&gt;Valeu!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; line-height: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="color: #333333; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; line-height: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZUWJg42O3-Jl2PedpzdApaznV1XQLOaEWVa8BSsctiwUrnJ98TyIUENlNfBzbEmLHSWphMd56KsrBBP-UK9BkZTuR-ZQeHxf0i2rMImLsLsYfKfeSnyxdsASHKmYW3c3bN44kVPnF5w/s72-c/docker.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Processo de desenvolvimento de software de maneira simples</title><link>http://profpv.blogspot.com/2014/04/o-processo-de-desenvolvimento-de-software.html</link><category>Processo de desenvolvimento de software</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 8 Apr 2014 18:00:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-6036777598380012235</guid><description>Fala pessoal tudo bem? Hoje vou ser bem clássico pois vou falar de um assunto que envolve parte seu conhecimento universitário e parte o seu conhecimento na prática. Para aqueles que só tem a teoria eu recomendo a prática e para os analistas desenvolvedores da prática eu recomendo uma pausa para a leitura de hoje que é sobre o "processo de desenvolvimento de sofware".&lt;br /&gt;
&lt;br /&gt;
Ok mas como eu defino o processo de desenvolvimento de software?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;O
processo de desenvolvimento de software é entre outras definições
um conjunto de ações parcialmente ordenadas, com a finalidade de
obter um sistema informatizado. Ele é estudado principalmente na
área de Engenharia de Software, sendo considerado um dos principais
mecanismos para a entrega de um sistema coeso que atenda as
necessidades de seus usuários. A qualidade e velocidade para
entregar um software é determinante dentro dos estudos da engenharia
de software, mas não se engane ela não é uma métrica exata.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Dentro do processo do desenvolvimento de software
existem diversas etapas e vou falar um pouquinho de cada uma que são:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1 -&amp;nbsp;Análise de requisitos&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;2 -&amp;nbsp;Especificação&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;3 -&amp;nbsp;Arquitetura de Software&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;4 -&amp;nbsp;Implementação&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;5 - Testes&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;OBS&lt;/b&gt;: Saiba que com o movimento ágil utilizando SCRUM e XP esse processo não necessáriamente é tão burocrático pois o manifésto agil prega a agilidade (&lt;a href="http://www.agilemanifesto.org/"&gt;Recomendo fortemente essa leitura aqui sobre o manifesto agil&lt;/a&gt;).&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Ainda assim o processo clássico não será descartado e vamos mostrar suas responsabilidades.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;1 -&amp;nbsp;Análise de requisitos&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Quando se trata do entendimento dos requisitos para um sistemas sendo uma parte importante do processo de projeto de sistemas, no qual o analista de negócio, aliado com outros participantes de software identificam as necessidade ou requisitos de um usuario.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Uma vez que os requisitos do sistema tenham sido identificados, os projetistas de sistema (entenda-se o carinha que vai pensar no business) estarão preparados para projetar a solução.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Existe a divisão de requisitos sendo Requisito funcional e Requisito não-funcional, esta parte do processo o analista faz as primeiras entrevistas com os clientes e/ou usuários do software para conhecer as funcionalidades do sistema que será desenvolvido. &lt;b&gt;Mas atenção é aqui que acontece a maior parte dos erros, pois a falta de experiência dos clientes ou usuários faz com que eles nem sempre tenham claro em sua mente quais funcionalidades o software necessita.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;A grande questão da analise de requisitos é: como como saber se as necessidades do domínio do sistema foi captada? O objetivo dessa fase é justamente levantar os requisitos e garantir o amadurecimento deles, gosto muito de adicionar o básico diagrama de classes da UML nessa fase pois pelo menos eu consigo ter algo "palpavel" rsrs. Pois bem já deu para perceber que essa fase é imprescindível não é? E depois disso como eu começo a pensar no meu "ecosistema"?.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;2 -&amp;nbsp;Especificação&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;A especificação é a definição do que se espera que um software faça. Ela pode ser informal, neste caso ela pode ser considerada como um blueprint ou manual de usuário do ponto de vista do desenvolvedor, ou formal, no caso de ela ser definida principalmente em termos matemáticos ou programáticos.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Na prática, as especificações mais bem sucedidas são escritas para a compreensão e ajustes em uma aplicação que já se encontra bem desenvolvida, embora sistemas de sistemas de segurança críticos sejam cuidadosamente especificados antes do desenvolvimento da aplicação. Especificações são mais importantes para interfaces externas que devem permanecer estáveis. Aqui na especificação é que acontece o tão "famoso" prototípo que costumam chamar de fase de prototipação, sinceramente não curto muito essa montagem "coxinha" da especificação pois na minha opinião usando UML e criando pequenos wireframes já conseguimos abordar muita coisa, e como eu disse antes as coisas devem ser feitas em pequenos trechos, imagine que vc vá desenvolver um e-commerce vão não vai especificar TUDO não é? melhor começarmos pelo catalogo, depois carrinho, logística do armazém e etc, assim garantimos mais exatidão na hora da entrega :D.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;3 -&amp;nbsp;Arquitetura de Software&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;A arquitetura de software é a fase que o desenvolvedor da as cartas, claro que se pensarmos no Domain Driven Design o desenvolvedor participa de TUDO, mas veja bem, é aqui que ele decide os componentes de software, sua regras básicas internas, suas propriedades externas, e seus relacionamentos com outros softwares. Essa fase tem como objetivo manter o sistema organizado no quesito estrutural e comportamental, garantindo que os dados tratados pelo software tenham comportamento coeso e definido, permitindo também mudanças lógicas sem afetar seu funcionamento. A arquitetura de software é necesserária para definir padrões e o design de uma aplicação, é aqui por exemplo que iriamos falar de Hexagonal Architecture, mas não vou falar sobre isso hoje pois eu me alongaria muito e tbm n tenho conhecimentos soloidos sobre isso rs.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
Vou pegar um trecho que escrevi no segundo ano da faculdade sobre a arquitetura de software (que trabalho para copiar do caderno kkkkkk)&lt;br /&gt;
"&lt;span style="font-family: Arial, serif; text-indent: 0.5in;"&gt;O
campo da ciência da computação tem lidado com problemas
associados, como a complexidade da informação, desde sua criação.
Os primeiros problemas de complexidade foram resolvidos pelos
desenvolvedores através da escolha da estrutura de dados, do
desenvolvimento de algoritmos e pela aplicação de conceitos de
separação de escopos. Embora o termo arquitetura de software seja
relativamente novo na indústria, os princípios fundamentais deste
campo vêm sendo aplicados esporadicamente pela engenharia de
software desde o início dos anos 80. As primeiras tentativas de
capturar e explicar a arquitetura de software do sistema foram
imprecisas e desorganizadas – freqüentemente caracterizadas por um
conjunto de diagramas. Durante o decorrer da década de 90 houve um
esforço concentrado para definir e codificar os aspectos
fundamentais desta disciplina. Inicialmente um conjunto de padrões
de projeto, estilo, melhores práticas, descrição de linguagens, e
lógica formal foram desenvolvidas durante este período."&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;4 -&amp;nbsp;Implementação&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif; text-indent: 0.5in;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Analistas falem o que for essa é a parte mais PICA de todas, todo software é escrito em uma linguagem de programação, embora seja possível, com alguma dificuldade, escrevê-lo diretamente em linguagem de máquina. Diferentes partes de um programa podem ser escritas em diferentes linguagens, diferente do que o processo de software comum prega nessa fase também testamos o nosso código como prega o processo TDD&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;"&lt;/span&gt;&lt;b style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;TDD&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;&amp;nbsp;é o desenvolvimento de software orientado a testes. Entenda mais detalhes e como usá-lo!&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;TDD&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;&amp;nbsp;é o desenvolvimento de software orientado a testes, ou em inglês,&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;Test Driven Development&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;. Mas mais do que simplesmente testar seu código,&amp;nbsp;&lt;/span&gt;&lt;b style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;TDD&lt;/b&gt;&lt;span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 16px; line-height: 19.2000007629395px;"&gt;&amp;nbsp;é uma filosofia, uma cultura."&lt;/span&gt;&lt;span style="font-family: Arial, serif;"&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Diferentes linguagens de programação funcionam de diferentes modos. Por esse motivo, os programadores podem criar programas muito diferentes para diferentes linguagens; muito embora, teoricamente, a maioria das linguagens possa ser usada para criar qualquer programa.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="text-indent: 0.5in;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Há várias décadas se debate se a programação é mais semelhante a uma arte (Donald Knuth), a uma ciência, à matemática (Edsger Dijkstra), à engenharia (David Parnas), ou se é um campo completamente novo. Ao meu ver desenvolvimento é uma mescla de arte com engenharia mas isso é minha opinião.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; text-indent: 48px;"&gt;
Para alguma tecnologias OPEN SOURCE o desenvolvedor precisa fazer tudo, TUDO mesmo, subir ambiente, banco de dados, então eu acredito que essa fase precisa de MUITA mas muita atenção e cuidado.&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;5 - Testes&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;b style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0.14in;"&gt;
O teste de software é a maneira de
verificar a qualidade do fotware em relação ao contexto em que ele
deve operar.&lt;span style="font-size: small;"&gt; Isso inclui o processo de utilizar o
produto para encontrar seus defeitos.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;O
teste é um processo realizado pelo testador de software, que abrange
outros processos da engenharia de software, e que envolve ações que
vão do levantamento de requisitos até a execução do teste
propriamente dito.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;Segundo a&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial, serif;"&gt;DEVMEDIA:&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;b&gt;“&lt;/b&gt;&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;Teste
de software é o processo de execução de um produto para determinar
se ele atingiu suas especificações e funcionou corretamente no
ambiente p$paymentFormara o qual foi projetado. O seu objetivo é
revelar falhas em um produto, para que as causas dessas falhas sejam
identificadas e possam ser corrigidas pela equipe de desenvolvimento
antes da entrega final. Por conta dessa característica das
atividades de teste, dizemos que sua natureza é “destrutiva”, e
não “construtiva”, pois visa ao aumento da confiança de um
produto através da exposição de seus problemas, porém antes de
sua entrega ao usuário final”&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;Existem
alguns conceitos básicos associados ao teste de software que são:
defeito, erro e falha.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in;"&gt;
&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;A
&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;figura 1 &lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;expressa
a diferença entre esses conceitos. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Defeitos&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;
fazem parte do universo físico (a aplicação propriamente dita) e
são causados por pessoas, por exemplo, através do mal uso de uma
tecnologia. &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;Defeitos&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;
podem ocasionar a manifestação de &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;erros&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;
em um produto, ou seja, a construção de um software de forma
diferente ao que foi especificado (universo de informação). Por
fim, os &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;erros&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;
geram &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;i&gt;falhas&lt;/i&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;,
que são comportamentos inesperados em um software que afetam
diretamente o usuário final da aplicação (universo do usuário) e
pode inviabilizar a utilização de um software.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;Existem alguns conceitos bem conhecidos de teste que são;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;span style="background: #ffffff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;A - Caixa Branca&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Também chamada de teste estrutural ou orientado à lógica, a técnica de caixa-branca avalia o comportamento interno do componente de software. Essa técnica trabalha diretamente sobre o código fonte do componente de software para avaliar aspectos tais como: teste de condição, teste de fluxo de dados, teste de ciclos, teste de caminhos lógicos, códigos nunca executados.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Os aspectos avaliados nesta técnica de teste dependerão da complexidade e da tecnologia que determinarem a construção do componente de software, cabendo portanto avaliação de mais aspectos que os citados anteriormente. O testador tem acesso ao código fonte da aplicação e pode construir códigos para efetuar a ligação de bibliotecas e componentes. Este tipo de teste é desenvolvido analisando o código fonte e elaborando casos de teste que cubram todas as possibilidades do componente de software. Dessa maneira, todas as variações relevantes originadas por estruturas de condições são testadas.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Um exemplo bem prático desta técnica de teste é o uso da ferramenta livre JUnit para desenvolvimento de classes de teste para testar classes ou métodos desenvolvidos em Java. Também se enquadram nessa técnica testes manuais ou testes efetuados com apoio de ferramentas para verificação de aderência a boas práticas de codificação reconhecidas pelo mercado de software. A aderência a padrões e boas práticas visa principalmente a diminuição da possibilidade de erros de codificação e a busca de utilização de comandos que gerem o melhor desempenho de execução possível. Apesar de muitos desenvolvedores alegarem que não há ganhos perceptíveis com essa técnica de teste aplicada sobre unidades de software, devemos lembrar que, no ambiente produtivo, cada programa pode vir a ser executado milhares ou milhões de vezes em intervalos de tempo pequenos. É na realidade de produção que a soma dos aparentes pequenos tempos de execução e consumo de memória de cada programa poderá levar o software a deixar de atender aos objetivos esperados. A técnica de teste de caixa-branca é recomendada para as fases de teste de unidade e teste de integração, cuja responsabilidade principal fica a cargo dos desenvolvedores do software, que por sua vez conhecem bem o código fonte produzido.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;B - Caixa Preta&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Também chamada de teste funcional, orientado a dado ou orientado a entrada e saída, a técnica de caixa-preta avalia o comportamento externo do componente de software, sem se considerar o comportamento interno do mesmo.4 Dados de entrada são fornecidos, o teste é executado e o resultado obtido é comparado a um resultado esperado previamente conhecido. Como detalhes de implementação não são considerados, os casos de teste são todos derivados da especificação.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Quanto mais entradas são fornecidas, mais rico será o teste. Numa situação ideal todas as entradas possíveis seriam testadas, mas na ampla maioria dos casos isso é impossível. Outro problema é que a especificação pode estar ambígua em relação ao sistema produzido, e como resultado as entradas especificadas podem não ser as mesmas aceitas para o teste. Uma abordagem mais realista para o teste de caixa-preta é escolher um subconjunto de entradas que maximize a riqueza do teste. Pode-se agrupar subconjuntos de entradas possíveis que são processadas similarmente, de forma que testar somente um elemento desse subconjunto serve para averiguar a qualidade de todo o subconjunto. Por exemplo, em um sistema que aceita um inteiro como entrada, testar todos os casos possíveis pode gerar pelo menos dezenas de milhares de casos de testes distintos. Entretanto, a partir da especificação do sistema, pode-se encontrar um subconjunto de inteiros que maximizem a qualidade do teste. Depende do propósito do sistema, mas casos possíveis incluem inteiros pares, inteiros ímpares, zero, inteiros positivos, inteiros negativos, o maior inteiro, o menor inteiro.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Essa técnica é aplicável a todas as fases de teste – teste unitário, teste de integração, teste de sistema e teste de aceitação. A aplicação de técnicas de teste leva o testador a produzir um conjunto de casos de teste (ou situações de teste). A aplicação combinada de outra técnica – técnica de particionamento de equivalência (ou uso de classes de equivalência) permite avaliar se a quantidade de casos de teste produzida é coerente. A partir das classes de equivalência identificadas, o testador construirá casos de teste que atuem nos limites superiores e inferiores destas classes, de forma que um número mínimo de casos de teste permita a maior cobertura de teste possível.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span style="background: #ffffff;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Uma abordagem no desenvolvimento do teste de caixa-preta é o teste baseado na especificação, de forma que as funcionalidades são testadas de acordo com os requisitos. Apesar de necessário, esse tipo de teste é insuficiente para identificar certos riscos num projeto de software&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;C - Unitários&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Fase em que se testam as menores unidades de software desenvolvidas (pequenas partes ou unidades do sistema). O universo alvo desse tipo de teste são as subrotinas ou mesmo pequenos trechos de código. Assim, o objetivo é o de encontrar falhas de funcionamento dentro de uma pequena parte do sistema funcionando independentemente do todo. Para as linguagens de programação mais sofisticadas existem os chamados frameworks xUnit, criados com o intuito de facilitar e padronizar os testes de unidade, normalmente o prefixo é substituido por alguma identificação da linguagem como por exemplo PhpUnit para PHP, jUnit para java, entre tantos outros, fornecem a estrutura para os testes e também podem criar métricas de cobertura de teste.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;D - Teste de Integração&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Na fase de teste de integração, o objetivo é encontrar falhas provenientes da integração interna dos componentes de um sistema. Geralmente os tipos de falhas encontradas são de transmissão de dados. Por exemplo, um componente A pode estar aguardando o retorno de um valor X ao executar um método do componente B; porém, B pode retornar um valor Y, gerando uma falha. Não faz parte do escopo dessa fase de teste o tratamento de interfaces com outros sistemas (integração entre sistemas). Essas interfaces são testadas na fase de teste de sistema, apesar de, a critério do gerente de projeto, estas interfaces podem ser testadas mesmo antes de o sistema estar plenamente construído.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;E - Teste de Sistema&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Na fase de teste de sistema, o objetivo é executar o sistema sob ponto de vista de seu usuário final, varrendo as funcionalidades em busca de falhas em relação aos objetivos originais. Os testes são executados em condições similares – de ambiente, interfaces sistêmicas e massas de dados – àquelas que um usuário utilizará no seu dia-a-dia de manipulação do sistema. De acordo com a política de uma organização, podem ser utilizadas condições reais de ambiente, interfaces sistêmicas e massas de dados.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;b&gt;F - Teste de Aceitação&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;Geralmente, os testes de aceitação são realizados por um grupo restrito de usuários finais do sistema, que simulam operações de rotina do sistema de modo a verificar se seu comportamento está de acordo com o solicitado. Teste formal conduzido para determinar se um sistema satisfaz ou não seus critérios de aceitação e para permitir ao cliente determinar se aceita ou não o sistema. Validação de um software pelo comprador, pelo usuário ou por terceira parte, com o uso de dados ou cenários especificados ou reais. Pode incluir testes funcionais, de configuração, de recuperação de falhas, de segurança e de desempenho.&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 0in; orphans: 0; widows: 0;"&gt;
&lt;span style="font-family: Arial, serif;"&gt;Pois bem amiguinho, &amp;nbsp;b&lt;/span&gt;&lt;span style="font-family: Arial, serif;"&gt;asicamente o desenvolvimento de software segue esses processos, dúvidas, sugestões ou críticas é só falar!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Seminário PHP: Show me The Code!</title><link>http://profpv.blogspot.com/2014/03/seminario-php-show-me-code.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 13 Mar 2014 08:50:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-1078628689079752145</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
Se alguém ainda acessa meu blog para acompanhar artigos sobre desenvolvimento aqui vai um convite para um evento em Porto Alegre - Rio Grande do Sul , sobre qualidade de software. O evento é promovido pela Tempo Real Eventos e tem o nome de "Show me The Code" e vai acontecer no dia 12 de abril de 2014.&lt;br /&gt;
&lt;br /&gt;
Ontem (dia 12 de Março) fizemos um Hangout com alguns palestrantes falando sobre o evento, o video segue abaixo:&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/1p68H8PyauA?feature=player_embedded' frameborder='0'&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Zend Certified PHP 5.5</title><link>http://profpv.blogspot.com/2013/10/zend-certified-php-55.html</link><category>PHP 5.5</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 19 Oct 2013 08:18:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-7348859060716387215</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;ul style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 19.1875px; list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; font-family: 'Times New Roman'; font-size: medium; line-height: normal; text-indent: 0px;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ1XOpVyX81N0OPv8I3jKLB0VrIdYJfjpW_CK-VanILzcfg7qh431knygTNZS7nF-DQeIoF8YgiGOYP7PHKUcIrZcFWMn21HO7lesjX2kZN8gZDmXdRnx-A4TOszzs5Nuge-ESAPemoA/s1600/zce-certification-php-190px-2013.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ1XOpVyX81N0OPv8I3jKLB0VrIdYJfjpW_CK-VanILzcfg7qh431knygTNZS7nF-DQeIoF8YgiGOYP7PHKUcIrZcFWMn21HO7lesjX2kZN8gZDmXdRnx-A4TOszzs5Nuge-ESAPemoA/s1600/zce-certification-php-190px-2013.gif" /&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Chega de suposições sobre a próxima certificação que a&amp;nbsp;&lt;b&gt;Zend&lt;/b&gt;&amp;nbsp;vai lançar, no dia 03 de Outubro de 2013 a Zend deixou disponível através da&lt;span style="line-height: 19.1875px;"&gt;&amp;nbsp;Pearson VUE a sua mais nova certificação. &amp;nbsp;PHP 5.5 a versão atual do PHP agora está disponível para quem quiser fazer a prova. Verifiquei nos tópicos que pouca coisa mudou, apenas foram adicionados os aspectos importantes do 5.4 E 5.5.&lt;br /&gt;&lt;br /&gt;A prova ainda é dividida em 10 tópicos sendo eles:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium; line-height: normal; text-indent: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium; line-height: normal; text-indent: 0px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium; line-height: normal; text-indent: 0px;"&gt;
&lt;/div&gt;
&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;&lt;table border="0" style="margin: 0px; padding: 0px; width: 100%px;"&gt;&lt;tbody style="margin: 0px; padding: 0px;"&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;th style="margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;PHP Basics&lt;/th&gt;&lt;th style="margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;Functions&lt;/th&gt;&lt;th style="margin: 0px; padding: 0px 5px; vertical-align: top;" width="34%"&gt;Data Format &amp;amp; Types&lt;/th&gt;&lt;/tr&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Syntax&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Operators&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Variables&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Control Structures&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Language Constructs and Functions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Namespaces (5.3) *&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Extensions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Config&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Performance/bytecode caching (5.3) *&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Arguments&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Variables&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;References&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Returns&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Variable Scope&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Anonymous Functions, closures (5.3) *&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;XML Basics&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;SimpleXML&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;XML Extension&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Webservices Basics&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;SOAP&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;JSON&amp;nbsp;(5.3) *&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;DateTime&amp;nbsp;(5.3) *&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;DOMDocument&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class="dotted-line" style="background-image: url(http://static.zend.com/img/line-dotted-hor.gif); background-position: 0px 0px; background-repeat: repeat no-repeat; clear: both; font-size: 1px; height: 1px; margin: 20px 0px 10px; padding: 0px;"&gt;
&lt;/div&gt;
&lt;table align="" border="0" cellpadding="1" cellspacing="1" style="margin: 0px; padding: 0px; width: 100%px;" summary=""&gt;&lt;tbody style="margin: 0px; padding: 0px;"&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;Web Features&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;Object Oriented Programming&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="34%"&gt;Security&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Sessions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Forms&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;GET and POST data&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Cookies&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;HTTP Headers&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;HTTP Authentication&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;HTTP Status Codes *&lt;/li&gt;
&lt;/ul&gt;
&lt;span style="font-weight: bold; margin: 0px; padding: 0px;"&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;I/O&lt;/span&gt;&lt;br /&gt;
&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Files&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Reading&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Writing&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;File System Functions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Streams&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Contexts&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Instantiation&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Modifiers/Inheritance&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Interfaces&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Exceptions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Autoload&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Reflection&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Type Hinting&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Class Constants&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Late Static Binding&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Magic (_*) Methods&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Instance Methods &amp;amp; Properties&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;SPL&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: blue;"&gt;Traits (5.4) *&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Configuration&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Session Security&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Cross-Site Scripting&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Cross-Site Request Forgeries&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;SQL Injection&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Remote Code Injection&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Email Injection&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Filter Input&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Escape Output&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Encryption, Hashing algorithms&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;File uploads&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;PHP Configuration&lt;span style="color: red;"&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: red;"&gt;Data Storage&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: red;"&gt;SSL&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: blue;"&gt;Password hashing API (5.5)*&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class="dotted-line" style="background-image: url(http://static.zend.com/img/line-dotted-hor.gif); background-position: 0px 0px; background-repeat: repeat no-repeat; clear: both; font-size: 1px; height: 1px; margin: 20px 0px 10px; padding: 0px;"&gt;
&lt;/div&gt;
&lt;table align="" border="0" cellpadding="1" cellspacing="1" style="margin: 0px; padding: 0px; width: 100%px;" summary=""&gt;&lt;tbody style="margin: 0px; padding: 0px;"&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;Strings &amp;amp; Patterns&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;Databases &amp;amp; SQL&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="34%"&gt;Arrays&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Quoting&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Matching&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Extracting&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Searching&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Replacing&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Formatting&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;PCRE&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;NOWDOC&amp;nbsp;&lt;span style="color: red;"&gt;and HEREDOC&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Encodings&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;SQL&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Joins&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: red;"&gt;Analyzing Query&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Prepared Statements&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Transactions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;PDO&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;ul style="list-style: inside; margin: 0px 0px 0px 1em; padding: 0px; text-indent: -1em;"&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: red;"&gt;Enumerated Arrays&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Associative Arrays&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Array Iteration&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Array Functions&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;&lt;span style="color: blue;"&gt;SPL, Objects as arrays (5.3/5.4/ 5.5) *&lt;/span&gt;&lt;/li&gt;
&lt;li style="margin: 0px; padding: 0px;"&gt;Casting&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/ul&gt;
&lt;table align="" border="0" cellpadding="1" cellspacing="1" style="margin: 0px; padding: 0px; width: 100%px;" summary=""&gt;&lt;tbody style="margin: 0px; padding: 0px;"&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="33%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="font-weight: bold; margin: 0px; padding: 0px 5px; vertical-align: top;" width="34%"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style="margin: 0px; padding: 0px;"&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="margin: 0px; padding: 0px 5px; vertical-align: top;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;span style="font-size: small; line-height: normal; text-indent: 0px;"&gt;Bem por esse quadro nós percebemos claramente que foi adicionado o que é de fato importante, e a Zend tiou algumas coisas que não faz mais sentido estar no PHP 5.5 ou seja, se vc já estava estudando para a certificação continue o seu plano de estudos, continue fazendo os testes que encontrou e estude apenas as coisas novas em paralelo. Para essas novas funcionalidades vou indicar um blog de um cara que é fera e conceituadissimo na comunidade PHP que é o Thiago Belem e &lt;a href="http://blog.thiagobelem.net/" target="_blank"&gt;aqui&lt;/a&gt; esta o blog&amp;nbsp;&lt;/span&gt;&lt;a href="http://blog.thiagobelem.net/"&gt;http://blog.thiagobelem.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;/ul&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ1XOpVyX81N0OPv8I3jKLB0VrIdYJfjpW_CK-VanILzcfg7qh431knygTNZS7nF-DQeIoF8YgiGOYP7PHKUcIrZcFWMn21HO7lesjX2kZN8gZDmXdRnx-A4TOszzs5Nuge-ESAPemoA/s72-c/zce-certification-php-190px-2013.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>PHP 5.4, 5.5 Traits, Generators e outras coisas boas - Hands On</title><link>http://profpv.blogspot.com/2013/09/php-54-55-traits-generators-e-outras.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 18 Sep 2013 07:33:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-5466576185716687852</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Olá amigos e amigas, esse artigo é apenas para eu divulgar o Hands On que vou fazer sobre PHP 5.4 e PHP 5.5 , dessa vez ńão é apenas apresentação mas sim mão na massa de como e quando utilizar esses funcionalidades das novas versões.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://www.season.com.br/cms/treinamentos/calendario/detalhe/evento/447/" target="_blank"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWkD7b9wSB5ykvGOejO4zsjpAjDUNqKpSPQGw5L3rurat4WlD7TdvLxiO9COVFhLEYZsnX_U0grBD7r8tJp0mDcqFWWxKZ8igZ3UsbDuxYE2TJRaywD2PXXPZZ6YXHAbJ9BaqyExxQYw/s400/php5-4e5-5-handson.jpg" width="400" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Para se inscrever é só entrar aqui&amp;nbsp;&lt;a href="http://www.season.com.br/cms/treinamentos/calendario/detalhe/evento/447/"&gt;http://www.season.com.br/cms/treinamentos/calendario/detalhe/evento/447/&lt;/a&gt;&amp;nbsp;o custo de investimento é de R$ 140,00 para presencial, provavelmente vamos transmitir também mas eu ainda não sei ainda se os preços serão os mesmos, assim que eu conseguir informações eu informo.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Bem, nos vemos la!&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWkD7b9wSB5ykvGOejO4zsjpAjDUNqKpSPQGw5L3rurat4WlD7TdvLxiO9COVFhLEYZsnX_U0grBD7r8tJp0mDcqFWWxKZ8igZ3UsbDuxYE2TJRaywD2PXXPZZ6YXHAbJ9BaqyExxQYw/s72-c/php5-4e5-5-handson.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Traits do PHP 5.4</title><link>http://profpv.blogspot.com/2013/09/traits-do-php-54.html</link><category>PHP 5.4</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 7 Sep 2013 20:51:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-8010970622835093595</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Bem amigos(as) hoje vou falar finalmente das &lt;b&gt;TRAITS&lt;/b&gt;&amp;nbsp;adicionadas no PHP 5.4, é verdade que já faz um ano que lançaram o &lt;span style="color: #0b5394;"&gt;&lt;b&gt;PHP 5.4&lt;/b&gt;&lt;/span&gt; e eu sempre quis falar rápido sobre as poderosas traits mas sempre fiquei enrolando então, agora é a hora.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM2qXXDig8yihiC_ohUntZqU1LtNxmzDafr-03fLQspJtl_-x1wIPvnD1jQ3YfoPldhG5PblHvyddZqm7ULwGr_SRjkUlWvPizqCiLRRLhloe1breJt_LP3v-sxkXRkN1Fz9OY2ACmDQ/s1600/php-traits.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM2qXXDig8yihiC_ohUntZqU1LtNxmzDafr-03fLQspJtl_-x1wIPvnD1jQ3YfoPldhG5PblHvyddZqm7ULwGr_SRjkUlWvPizqCiLRRLhloe1breJt_LP3v-sxkXRkN1Fz9OY2ACmDQ/s1600/php-traits.jpg" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Afinal, o que são Traits? Traits são mecanismos que ajudam o problema de multipla extensão &amp;nbsp;auxiliando de forma elegante o reuso de código. Essa é basicamente a explicação da documentação mas a minha visão sobre Traits é que além de facilitar o reuso do código elas ajudam e muito uma arquitetura melhor da sua aplicação PHP e vocês vão ver pq eu acho isso.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Vamos imaginar uma situação real, vc está desenvolvendo um portal de notícias e toda interação dos usuários no site (Autenticação, comentário em notícia, adicionar agenda, comprar ingressos para show, etc...) &amp;nbsp;precisamos registrar em uma funcionalidade que grava o comportamento do usuário nesse site, não sendo necessáriamente um log mas sim uma funcionalidade para traçar perfil.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Vamos imaginar o básico da classe de usuario e da classe de traçar perfil(vamos chamar ela de perfil apenas para estudo certo?)&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
Classe PERFIL RESPONSÁVEL PARA REGISTRAR E TRAÇAR PERFIL DE AÇÕES&lt;br /&gt;
&lt;/div&gt;
&lt;div id="selectable" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;div class="php" style="color: #acacac;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Perfil&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;registra&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$acao&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;//registra uma ação&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E ai a nossa de usuario com uma pequena ação de alterar foto&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
Classe PESSOA&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div id="selectable" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;div class="php" style="color: #acacac;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Pessoa&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;AppEntityPessoa&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;private&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Getters and setters&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;alteraFoto&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$acao&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;//faz algo...&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// preciso registrar a acao na perfil como tornar isso um comportamento desse contexto?&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Legal agora temos um problema que deve ser tratado seriamente como um padrão de arquitetura, se por obrigação todas minhas classes que representem dados precisam estender de uma entity da aplicação(vamos imaginar que essa é a estrutura imaginada), como eu soluciono esse problema? Existem diversas formas, mas as mais utilizadas seriam duas, a primeira seria criar uma estrutura de heranças em que em uma parte dela teriamos a classe perfil e essa por questões obvias é muito feia e sem sentido, mas ainda assim é uma solução utilizada. A segunda solução e mais recomendade seria no construtor da classe pessoa eu instânciar a classe Perfil e ai eu teria a instância injetada nessa classe utilizando esse contexto facilmente.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Pois bem apesar de uma solução melhor ainda assim não e boa e as traits resolvem isso mesmo, utilizando essa solução em traits criariamos a classe perfil como uma trait e apenas usariamos nas classes que julgamos necessário basicamente assim:&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
TRAIT PERFIL RESOLVENDO NOSSO PROBLEMA&lt;br /&gt;
&lt;/div&gt;
&lt;div id="selectable" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;div class="php" style="color: #acacac;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
trait Perfil&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;registra&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$acao&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;//registra uma ação&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E ai a classe pessoa utilizaria a trait com o use dentro da classe, herdando assim as características dela sem precisar instancia-la:&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
UTILIZANDO A TRAIT PERFIL&lt;/div&gt;
&lt;div id="selectable" style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;div class="php" style="color: #acacac;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Pessoa&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;Perfil&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;use&lt;/span&gt;&amp;nbsp;Perfil&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;private&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Getters and setters&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;alteraFoto&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$acao&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;//faz algo&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;registra&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$acao&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Conclusão&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Traits resolvem de fato um problema de arquitetura sendo mais fácil pensar em como consumir classes fóra de contexto sem instancia-las ou herdar elas criando uma estrutura maluca. Frameworks vão utilizar isso com muita felicidade pois essa funcionalidade acaba com uma porrada de hierarquias gigantes criadas anteriormente.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Bem... é isso.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Referência: Documentação Oficial&amp;nbsp;&lt;a href="http://br1.php.net/manual/en/language.oop5.traits.php"&gt;http://br1.php.net/manual/en/language.oop5.traits.php&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM2qXXDig8yihiC_ohUntZqU1LtNxmzDafr-03fLQspJtl_-x1wIPvnD1jQ3YfoPldhG5PblHvyddZqm7ULwGr_SRjkUlWvPizqCiLRRLhloe1breJt_LP3v-sxkXRkN1Fz9OY2ACmDQ/s72-c/php-traits.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Encontro PHP dia 06/08 19:30 em SP</title><link>http://profpv.blogspot.com/2013/08/encontro-php-dia-0608-1930-em-sp.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 4 Aug 2013 10:55:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-1416307581372748034</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Buenas! Esse artigo é somente para compartilhar o encontro PHP realizado pela Season onde vamos ter muito networking e compartilhamento de conhecimento. O encontro acontece dia 06/08/2013 (terça-feira) ás 19:30 na &amp;nbsp;Avenida Bernadino de Campos, nº 327 CJ 92, Bairro Paraíso - São Paulo - SP&lt;br /&gt;&lt;br /&gt;Esse evento conta com duas palestras, sendo uma minha que vou falar sobre Domain-Driven Design aplicado no PHP e outra do Anderson Casimiro (Duodraco) que vai falar sobre Excelência em Software.&lt;br /&gt;&lt;br /&gt;Se inscreva e participe, a inscrição é gratuita! Agora se você não puder ir se inscreve e assista via WEBCAST nesse link:&lt;/span&gt;&lt;br /&gt;
&lt;a href="https://docs.google.com/spreadsheet/viewform?formkey=dEttMGpLNlVXQlQzSXRFUWxsb043ZUE6MA" rel="nofollow nofollow" style="background-color: white; color: #3b5998; cursor: pointer; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 13px; line-height: 18px; text-decoration: none;" target="_blank"&gt;https://docs.google.com/spreadsheet/viewform?formkey=dEttMGpLNlVXQlQzSXRFUWxsb043ZUE6MA&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0HN-tTnZtA3cBxqfpxkNv0VE5Zgbf6kVSLiPH53mKDCNltIVEPs2Au4TgiicYfPfrKYs4stdt5ii4ATHwtprc0sjDC88ZrdFPwWkdOHFQM_VSns6749bgMv89ozkn3rVhYgawzn-LdQ/s1600/969999_619693444742173_477626393_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0HN-tTnZtA3cBxqfpxkNv0VE5Zgbf6kVSLiPH53mKDCNltIVEPs2Au4TgiicYfPfrKYs4stdt5ii4ATHwtprc0sjDC88ZrdFPwWkdOHFQM_VSns6749bgMv89ozkn3rVhYgawzn-LdQ/s400/969999_619693444742173_477626393_n.jpg" width="355" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0HN-tTnZtA3cBxqfpxkNv0VE5Zgbf6kVSLiPH53mKDCNltIVEPs2Au4TgiicYfPfrKYs4stdt5ii4ATHwtprc0sjDC88ZrdFPwWkdOHFQM_VSns6749bgMv89ozkn3rVhYgawzn-LdQ/s72-c/969999_619693444742173_477626393_n.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Instalando o OpenJDK 7 no Ubuntu 13.04</title><link>http://profpv.blogspot.com/2013/07/instalando-o-openjdk-7-no-ubuntu-1304.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 27 Jul 2013 07:51:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-586864343116410951</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;style&gt;
code {
background: #f4f4f4;
font-family: courier;
font-family: consolas, courier, monospace;
font-size: 12px;
line-height: 1.2em;
white-space: pre;
overflow: auto;
padding: 1em;
margin: 1em 0.1em;
width: 98%;
float: left;
}
&lt;/style&gt;

&lt;br /&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Olá amigos, essa é para vc que precisa do OpenJDK 7 para acessar seu internet banking ou instalar netbeans subir o solr ou coisas derivadas que precisam do java. Vamos instalar o Open JDK 7 no ubuntu 13.04&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Primeiro vamos instalar o&amp;nbsp;&lt;span style="background-color: white; border: 0px; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; padding: 0px; vertical-align: baseline;"&gt;IcedTea&lt;/span&gt;&lt;span style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 21px;"&gt;&amp;nbsp;plugin para o navegador&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;code&gt;$ sudo apt-get install icedtea-7-plugin openjdk-7-jre&lt;/code&gt;


&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Agora O openjdk&lt;/b&gt;&lt;/div&gt;
&lt;code&gt;$ sudo apt-get install openjdk-7-jdk&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Bem, é isso ae.&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Nginx php-fpm e mysql e phpmyadmin no Ubuntu 13.04</title><link>http://profpv.blogspot.com/2013/06/nginx-php-fpm-e-mysql-e-phpmyadmin-no.html</link><category>linux</category><category>nginx</category><category>php-fpm</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Wed, 12 Jun 2013 00:03:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-4302548768789817301</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Olá amigos e amigas tudo bem? Hoje vou mostrar aqui de maneira bem objetiva como montar um ambiente padrão com o todo poderoso &lt;b&gt;Nginx&lt;/b&gt; utilizando &lt;b&gt;php-fpm&lt;/b&gt; e de quebra &lt;b&gt;mysql&lt;/b&gt; no &lt;b&gt;Ubuntu 13.04&lt;/b&gt; ok?&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkUDseQZAN8m0F2MyuNXeYTiKj3OuEwvUB8-QkHuT-JVoYsGadm1Hh29-mYZU5n78PzyeazmycBTQ62amjfAItvYjAfwJu8Zhy6mXS0K5NRqkKj8_oGR5z-jhIe0gzcRos3X0tJjqLzQ/s1600/nginx-profpv.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkUDseQZAN8m0F2MyuNXeYTiKj3OuEwvUB8-QkHuT-JVoYsGadm1Hh29-mYZU5n78PzyeazmycBTQ62amjfAItvYjAfwJu8Zhy6mXS0K5NRqkKj8_oGR5z-jhIe0gzcRos3X0tJjqLzQ/s1600/nginx-profpv.gif" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
No final deste pequeno artigo teremos um phpmyadmin rodando legalzinho com o nginx.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
Abra o seu console e siga os passos(preciso dizer que precisa rodar como root?).&lt;/span&gt;&lt;br /&gt;
&lt;h3 style="text-align: left;"&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;1º Vamos começar com nosso querido mysql&lt;/span&gt;&lt;span style="background-color: #f9f9f9; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: black; font-weight: normal;"&gt;&lt;span style="color: orange; font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;apt-get install mysql-client-5.5 mysql-server-5.5 php5-mysql&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;/h3&gt;
&lt;h3&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;1º Agora o PHP&lt;span style="background-color: #f9f9f9;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: black;"&gt;&lt;span style="color: orange; font-weight: normal;"&gt;apt-get install php5 php5-cli php5-dev php5-mcrypt php5-curl php5-gd libapache2-mod-php5&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="background-color: #f9f9f9; font-style: italic; font-weight: bold; line-height: 13.1875px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;2º Agora o Nginx&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-style: italic; line-height: 13.1875px;"&gt;&lt;span style="background-color: #f9f9f9; font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: black; color: orange;"&gt;apt-get install nginx&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3&gt;
&lt;span style="font-size: small;"&gt;&lt;span style="background-color: #f9f9f9; font-style: italic; line-height: 13.1875px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;3º Restart no nginx&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic; line-height: 13.1875px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: #f9f9f9;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="background-color: black; color: orange; font-weight: normal;"&gt;/etc/init.d/nginx restart&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span style="line-height: 13.1875px;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;h3&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"&gt;&lt;span style="line-height: 13.1875px;"&gt;&lt;i&gt;4º Instalando o php-fpm&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color: black; color: orange; font-style: italic; font-weight: normal; line-height: 13.1875px;"&gt;apt-get install php5-fpm&lt;/span&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="background-color: #f9f9f9; font-family: Arial, Helvetica, sans-serif; font-style: italic; line-height: 13.1875px;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;i&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;5º Vamos criar o diretorio www no /var para deixar la nossos fontes (vc não precisa fazer isso pode utilizar outro lugar, mas eu gosto deste)&lt;/b&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;i style="line-height: 13.1875px;"&gt;&lt;span style="background-color: black; color: orange; font-family: Arial, Helvetica, sans-serif;"&gt;mkdir /var/www&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: black; line-height: 13.1875px;"&gt;&lt;i&gt;&lt;span style="color: orange;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="background-color: #f9f9f9; font-family: Arial, Helvetica, sans-serif; font-style: italic; line-height: 13.1875px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: #f9f9f9; font-style: italic; line-height: 13.1875px;"&gt;Agora vamos baixar os fontes do &lt;b&gt;phpmyadmin&lt;/b&gt; em&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.phpmyadmin.net/home_page/index.php"&gt;http://www.phpmyadmin.net/&lt;/a&gt;&amp;nbsp;estou utilizando a versão 4.0.3&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Terminando o download vamos descompactar nosso amiguinho&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;unzip phpMyAdmin-4.0.3-all-languages.zip&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E mover ele para o diretorio /var/www com o nome somente de phpMyAdmin&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mv phpMyAdmin-4.0.3-all-languages /var/www/phpMyAdmin&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Pronto. Agora vamos configurar os hosts do nosso phpMyAdmin&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Criando a linha no hosts&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;vim /etc/hosts&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Adicione&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;127.0.0.1 &amp;nbsp; &amp;nbsp; phpmyadmin.dev&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E agora vamos criar o arquivo de configuração do nginx&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;vim /etc/nginx/sites-available/phpmyadmin.dev&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E ai vc insere esse conteudo:&lt;/span&gt;&lt;br /&gt;
&lt;div class="bubble" id="file-gistfile1-txt" style="background-color: #eeeeee; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; margin-bottom: 12px; padding: 3px;"&gt;
&lt;div class="file-box " style="background-color: #ececec; border: 1px solid rgb(204, 204, 204); position: relative;"&gt;
&lt;div class="file-data" style="background-color: ghostwhite; overflow: auto;"&gt;
&lt;table cellpadding="0" cellspacing="0" class="lines highlight" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-collapse: collapse; border-spacing: 0px; border: 0px; font-size: inherit; padding: 0px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td class="line-numbers" style="-webkit-user-select: none; border-right-color: rgb(238, 238, 238); border-right-style: solid; border-right-width: 1px; box-sizing: border-box; color: #aaaaaa; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 12px; line-height: 1.4; min-width: 27px; padding: 12px 6px; text-align: right;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td class="line-data" style="line-height: 1.4; padding: 12px 0px 12px 12px; width: 1897px;"&gt;&lt;pre class="line-pre" style="line-height: 1.4; padding: 0px; width: 1897px;"&gt;&lt;div class="line" id="file-gistfile1-txt-LC1"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;### phpmyadmin simple configuration&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC2"&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC6"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;server {&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC7"&gt;
&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC8"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;server_name phpmyadmin.dev;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC10"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;access_log  /var/log/nginx/phpmyadmin.access.log;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC11"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;error_log   /var/log/nginx/phpmyadmin.error.log;&lt;span style="line-height: 1.4;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC13"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;client_max_body_size  5m;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC14"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;client_header_timeout 1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC15"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;client_body_timeout   1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC16"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;send_timeout          1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC17"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;keepalive_timeout     1200;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC19"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;set $thttps off;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC27"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;root        /var/www/phpMyAdmin/;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC28"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;try_files   $uri $uri/ /index.php?$args;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC29"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;index       index.php;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC35"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;location ~ \.php$ {&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC36"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_pass    127.0.0.1:9000;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC37"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_index   index.php;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC38"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;include         fastcgi_params;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC40"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_connect_timeout 1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC41"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_send_timeout    1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC42"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_read_timeout    1200;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC45"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC46"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;fastcgi_param   APPLICATION_ENV dev;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC48"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC50"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;error_page  403 /403.html;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC51"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;error_page  404 /404.html;&lt;/span&gt;&lt;/div&gt;
&lt;div class="line" id="file-gistfile1-txt-LC52"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;error_page  500 502 503 504 /50x.html;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;div class="line" id="file-gistfile1-txt-LC56"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Cria um link maroto para o sites-enable&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;ln -s /etc/nginx/sites-available/phpmyadmin.dev /etc/nginx/sites-enabled/phpmyadmin.dev&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;por fim vamos arrumar a porta de escuta no fpm&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;sudo vim /etc/php5/fpm/pool.d/www.conf&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;procura a linha que esta assim:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;listen = /var/run/php5-fpm.sock&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;e mude para&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;listen = 127.0.0.1:9000&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;(lembre-se que no arquivo de conf colocamos o fast na 9000)&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E da um restart na parada toda&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;service php5-fpm restart&lt;br /&gt;/etc/init.d/nginx restart&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;e ai é só acessar&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://phpmyadmin.dev&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Done!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Dúvidas não exite em perguntar.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkUDseQZAN8m0F2MyuNXeYTiKj3OuEwvUB8-QkHuT-JVoYsGadm1Hh29-mYZU5n78PzyeazmycBTQ62amjfAItvYjAfwJu8Zhy6mXS0K5NRqkKj8_oGR5z-jhIe0gzcRos3X0tJjqLzQ/s72-c/nginx-profpv.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>TDC2013</title><link>http://profpv.blogspot.com/2013/06/tdc2013.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 1 Jun 2013 16:29:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-2547245052635051904</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;h3 style="text-align: center;"&gt;
&lt;span style="font-size: small;"&gt;De 10 a 14 de Julho o TDC está de volta meus amigos! Vamos todos para o TDC2013 São Paulo&lt;/span&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="http://www.thedevelopersconference.com.br/" style="text-decoration: none;" target="_blank"&gt;&lt;img alt=" The Developers Conference 2013, um evento organizado pela Globalcode" src="http://www.thedevelopersconference.com.br/banners/2013/banner-TDC2013-sampa-180x150.png" style="border: none;" title=" The Developers Conference 2013, um evento organizado pela Globalcode" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ZF1 para ZF2</title><link>http://profpv.blogspot.com/2013/05/zf1-para-zf2.html</link><category>zend framework</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 27 May 2013 21:15:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-677205640870413629</guid><description>&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;a href="http://4.bp.blogspot.com/-LfhX1r4AFaI/UaP2SDlgEMI/AAAAAAAAAK8/IMTiZj74jBo/s1600/xf2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="190" src="http://4.bp.blogspot.com/-LfhX1r4AFaI/UaP2SDlgEMI/AAAAAAAAAK8/IMTiZj74jBo/s320/xf2.png" width="320" /&gt;&lt;/a&gt;Olá amigos(as), hoje vou apenas compartilhar aqui o video que foi o primeiro Webinar oficial da Zend feito em português pelo já conhecido e famoso Flávio Gomes Lisboa (Escritor dos livros de ZF1). Eu tive a oportunidade de assistir a transmissão ao vivo e achei muito produtiva em todos os aspectos.&lt;/div&gt;
Acho que o video tenta de uma forma simples comparar as diferenças entre os dois frameworks e mostrar os desafios que a Zend passou para criar esse framework tão robusto que é o Zend Framework 2.&lt;br /&gt;
&lt;br /&gt;
Sendo assim segue abaixo o link do video:&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.zend.com/en/webinar/ZF/70170000000c4Mm-migrando-do-zf1-para-o-zf2-20130416.flv"&gt;http://www.zend.com/en/webinar/ZF/70170000000c4Mm-migrando-do-zf1-para-o-zf2-20130416.flv&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://4.bp.blogspot.com/-LfhX1r4AFaI/UaP2SDlgEMI/AAAAAAAAAK8/IMTiZj74jBo/s72-c/xf2.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Netflix no Linux Ubuntu</title><link>http://profpv.blogspot.com/2013/04/netflix-no-linux-ubuntu.html</link><category>linux</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 30 Apr 2013 19:16:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-8853314959809128255</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Esse pequeno artigo vai te ajudar rapidamente a rodar o Netflix no Linux Ubuntu.&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ7oU8853ImcQygG1ricO9JZr9fFD7m_7QyolkydLCIvVs4Y8qKGk6TJhhhBFEjHT92-CtzLPhvqrgF6EB0RfpVeF-PBZOPwDwXY3nnIOt_JWNCQhrd5h_p6JqwPOA4S_qxYzJKpyQiA/s1600/netflix-on-linux.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="226" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ7oU8853ImcQygG1ricO9JZr9fFD7m_7QyolkydLCIvVs4Y8qKGk6TJhhhBFEjHT92-CtzLPhvqrgF6EB0RfpVeF-PBZOPwDwXY3nnIOt_JWNCQhrd5h_p6JqwPOA4S_qxYzJKpyQiA/s320/netflix-on-linux.png" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Mas espera ai! O &lt;b&gt;&lt;span style="color: red;"&gt;NETFLIX&lt;/span&gt;&lt;/b&gt; NÃO RODA NO LINUX? E A RESPOSTA É SIMPLES, O &lt;b&gt;&lt;span style="color: red;"&gt;NETFLIX&lt;/span&gt;&lt;/b&gt; utiliza o &lt;b&gt;&lt;span style="color: #351c75;"&gt;Microsoft Silverlight&lt;/span&gt;&lt;/b&gt;....&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Na boa, há um ano atrás eu vi algumas estratégias do &lt;b&gt;&lt;span style="color: red;"&gt;NETFLIX&lt;/span&gt;&lt;/b&gt; sobre uso do HTML5 muito interessantes, e até imaginei que fosse uma empresa "estilo Google de pensar", mas depois que eu vi que além de utilizarem &lt;span style="color: #351c75;"&gt;Silverlight&lt;/span&gt; não existe uma alternativa criada &lt;b&gt;POR ELES DIRETO NO BROWSER&amp;nbsp;&lt;/b&gt;achei uma baita palhaçada e descaso dessa empresa. &lt;br /&gt;Sério, que ano eles pensam que estão? Será que é tudo da &lt;/span&gt;&lt;span style="color: #073763; font-family: Arial, Helvetica, sans-serif;"&gt;Microsoft&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;? Será que a &lt;/span&gt;&lt;span style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"&gt;Microsoft&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; ainda não aprendeu que quando vc tenta impor algo vc só tem a perder? Sei lá viu, algumas pessoas e alguns cargos na&amp;nbsp;área&amp;nbsp;de TI não deveriam simplesmente existir.&lt;br /&gt;&lt;br /&gt;Enfim, deixando o desabafo de lado vamos falar da solução técnica para isso, um programador do EUA chamado&amp;nbsp;&lt;b&gt;&lt;span style="color: #134f5c;"&gt;Erich E. Hoover&lt;/span&gt;&lt;/b&gt; também ficou puto mas não apenas reclamou como arregaçou as mangas e foi desenvolver uma solução(&lt;b&gt;PARA NOOOOOSSSAAA ALEGRIAA&lt;/b&gt;), e é bemmm simples pois é basicamente o programa que trabalha com o Wine em conjunto com o Firefox. E para vc e eu que queremos fazer o Netflix rodar sem muito esforço ficou perfeito(rs).&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;span style="color: #0b5394;"&gt;Abra o terminal e resolva isso com 3 comandinhos&lt;/span&gt;&lt;/span&gt;&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;$ sudo apt-add-repository ppa:ehoover/compholio&lt;br /&gt;$ sudo apt-get update&lt;br /&gt;$ sudo apt-get install netflix-desktop&lt;/strong&gt;&lt;br /&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: #0b5394;"&gt;Depois de instalado é só chamar nosso amiguinho e pronto&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;$ netflix-desktop&lt;/strong&gt;&lt;br /&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;strong style="background-color: white; font-family: Verdana, 'DejaVu Sans'; font-size: 11px; text-align: justify;"&gt;&lt;br /&gt;&lt;/strong&gt;
&lt;span style="color: #999999; font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;Fonte&amp;nbsp;&lt;a href="http://www.compholio.com/netflix-desktop/"&gt;http://www.compholio.com/netflix-desktop/&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJ7oU8853ImcQygG1ricO9JZr9fFD7m_7QyolkydLCIvVs4Y8qKGk6TJhhhBFEjHT92-CtzLPhvqrgF6EB0RfpVeF-PBZOPwDwXY3nnIOt_JWNCQhrd5h_p6JqwPOA4S_qxYzJKpyQiA/s72-c/netflix-on-linux.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Arquitetura SOLID</title><link>http://profpv.blogspot.com/2013/04/arquitetura-solid.html</link><category>Arquitetura de Software</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sat, 20 Apr 2013 09:07:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-4492019772000435501</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
Olá amigos, ultimamente ando com artigos mais conceituais pois meu intuito ultimamente é flexionar nosso cérebro para pensar &amp;nbsp;de uma forma mais ampla do desenvolvimento de software. Por isso hoje vou falar da consagrada Arquitetura de Software &lt;b&gt;SOLID&lt;/b&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNdsnsUApMnnp9WJLkAvIdwPafm87KCqbctyJ-7kMYzI9FIR-b__R-0J87qoGH9FQXRZM7OeBU6lvenCLP1WoWuBvKV2TgWxWlTvhTLr-y41j8UewsItn7MXrSirz59tBhWpEZbi1CGw/s1600/arquitetura-de-software-solid.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNdsnsUApMnnp9WJLkAvIdwPafm87KCqbctyJ-7kMYzI9FIR-b__R-0J87qoGH9FQXRZM7OeBU6lvenCLP1WoWuBvKV2TgWxWlTvhTLr-y41j8UewsItn7MXrSirz59tBhWpEZbi1CGw/s320/arquitetura-de-software-solid.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
Em meados de 2005, Robert Martin(Uncle Bob), publicou um artigo sobre 11 princípios de Design para desenvolvimento Orientado a Objetos. No artigo ele diz que não basta programar orientado a objetos, é necessário ter princípios de design para manter a qualidade. Os 5 primeiros princípios ficaram “mais famosos”, sendo estes os que formam o S.O.L.I.D.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;strong style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
O SOLID tenta mostrar de maneira simples como planejar algo limpo e de uso altamente flexível(afinal, &amp;nbsp;pq usar?). Vou dar uma acordada em vc ai, sabia que o famoso &lt;b&gt;Zend Framework 2&lt;/b&gt; usa SOLID? Pois é meu amigo e amiga o&amp;nbsp;&lt;b&gt;Matthew Weier&lt;/b&gt; cabeça do desenvolvimento do ZF2 buscou usar o melhor da atualidade para o framework e eles encontraram no SOLID uma forma de expressar o que eles queriam de fato que é o conceito de framework "&lt;b&gt;USE O QUE VC QUISER E A VONTADE&lt;/b&gt;". Ta mais vamos ao ponto desse nome, veja a figura acima e acompanhe a explicação das siglas abaixo.&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;strong style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;b&gt;S&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: #fefefe; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; text-align: start;"&gt;&amp;nbsp;– Single Responsibility principle: uma classe deve ter apenas uma responsabilidade.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;b&gt;O&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: #fefefe; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; text-align: start;"&gt;&amp;nbsp;– Open/Closed principle: entidades de software devem ser abertos para extensão, mas fechadas para modificação.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="border: none; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;"&gt;&lt;b&gt;L&lt;/b&gt;&lt;/span&gt;&amp;nbsp;– Liskov substitution principle: objetos em um programa devem ser substitíveis por suas classes derivadas em qualquer ponto do código sem alterar a funcionalidade do programa.&lt;/div&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;b&gt;&lt;span style="border: none; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;"&gt;I&lt;/span&gt;&amp;nbsp;&lt;/b&gt;– Interface segregation principle: interfaces muito específicas são melhores do que interfaces de uso geral.&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;
&lt;/span&gt;&lt;span style="background-color: #fefefe; border: none; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; margin: 0px; outline: none; padding: 0px; text-align: start; vertical-align: baseline;"&gt;&lt;div style="text-align: left;"&gt;
&lt;span style="border: none; margin: 0px; outline: none; padding: 0px; vertical-align: baseline;"&gt;&lt;b&gt;D&lt;/b&gt;&lt;/span&gt;&amp;nbsp;– Dependency inversion principle: módulos devem depender de abstrações.&lt;/div&gt;
&lt;/span&gt;&lt;span style="background-color: #fefefe; color: #333333; font-family: Georgia, Times, 'Times New Roman', serif; font-size: 16px; line-height: 25px; text-align: start;"&gt;&lt;div style="text-align: left;"&gt;
Mais detalhes,&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/SOLID_%28object-oriented_design%29" style="border: none; color: #04648d; cursor: pointer; margin: 0px; outline: none; padding: 0px; text-decoration: initial; vertical-align: baseline;" target="_blank"&gt;clique aqui&lt;/a&gt;.&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;
Bem é basicamente isso recomendo uma leitura na documentação do &lt;b&gt;Zend Framework 2&lt;/b&gt;(&lt;a href="http://framework.zend.com/manual/2.1/en/index.html"&gt;aqui&lt;/a&gt;) e também na matéria do &lt;b&gt;Bob&lt;/b&gt;(&lt;a href="http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod"&gt;aqui&lt;/a&gt;)&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNdsnsUApMnnp9WJLkAvIdwPafm87KCqbctyJ-7kMYzI9FIR-b__R-0J87qoGH9FQXRZM7OeBU6lvenCLP1WoWuBvKV2TgWxWlTvhTLr-y41j8UewsItn7MXrSirz59tBhWpEZbi1CGw/s72-c/arquitetura-de-software-solid.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Entenda o Domain Driven Design</title><link>http://profpv.blogspot.com/2013/03/entenda-o-domain-driven-design.html</link><category>Agile</category><category>Arquitetura de Software</category><category>Design Patterns</category><category>engenharia de software</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 19 Mar 2013 07:08:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-1620770008163163449</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Olá amigos e amigas tudo bem? Hoje vou resumir de uma forma mais "Mamão com açucar" O que é o DDD e imaginar exemplos utilizando o DDD para como resolver um determinado problema ok?&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjjEzWt-S9s6uGgLYCkV_k0GzYIOAevS3rZ-hgO3OdMsLemZbA4b7uDPXWH1VKnPxahrXr7L1LxggL0NUn9sx8H9yigLMUb6EVfNSWUD-Sgm0urbQVb2-uezkFzguBfrusWuiaePmajw/s1600/ddd-domain-driving-design-profpv.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="235" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjjEzWt-S9s6uGgLYCkV_k0GzYIOAevS3rZ-hgO3OdMsLemZbA4b7uDPXWH1VKnPxahrXr7L1LxggL0NUn9sx8H9yigLMUb6EVfNSWUD-Sgm0urbQVb2-uezkFzguBfrusWuiaePmajw/s320/ddd-domain-driving-design-profpv.jpg" width="320" /&gt;&lt;/a&gt;&lt;span style="color: #0b5394; font-size: large;"&gt;Provavelmente vc se lembra daqueles 3 gordinhos da Embratel não é? "&lt;b&gt;pegue o seu d d dedo e disque o nu número da embratel, antes do ddd é 021...&lt;/b&gt;" Pois bem, eles não tem nada haver com o que eu vou explicar, mas fica ai como imagem de apresentação.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Existem duas maneiras de vc ter caído aqui no meu blog, a &lt;b&gt;1ª &lt;/b&gt;é vc conhecer meu blog e veio aqui para ver novos artigos(a grande menoria). A &lt;b&gt;2ª&lt;/b&gt; é pq vc está pesquisando sobre DDD e encontra muito artigo cheio de filosofia e acaba não absorvendo muito bem, e provavelmente vc não tem muito tempo para lêr o livro do Evans então chegas mais que vou resumir essa parada pra vc!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
Antes de mais nada vamos ao entendimento básico, &lt;b&gt;Domain Driven Design&lt;/b&gt; significa entre outras palavras &lt;b&gt;Projeto Orientado a Domínio&lt;/b&gt;. Que veio do título do livro do &lt;b&gt;Eric Evans&lt;/b&gt;. O livro do Evans é basicamente um catálogo de padrões baseados em experiências do próprio Evans ao longo de mais de 20 anos de desenvolvimento de software utilizando técnicas de Orientação a Objetos.&lt;br /&gt;&lt;br /&gt;O DDD é basicamente o uso ideal da Orientação a Objetos(&lt;b&gt;PRONTO ACABEI DE EXPLICAR TUDO PODE IR EMBORA&lt;/b&gt;).&lt;br /&gt;&lt;br /&gt;Não fique bravo(a) comigo pois essencialmente é isso mesmo, DDD é o uso inteligente da orientação a objetos para resolver diversos problemas. &lt;br /&gt;&lt;br /&gt;Vamos lá &lt;b&gt;&lt;u&gt;&lt;span style="color: #274e13;"&gt;open your mind&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;Os decoradores(&lt;i&gt;entende-se pessoas que decoram&lt;/i&gt;) de Orientação a Objetos tem um problema grave com isso pois quando se fala em &lt;b&gt;OO&lt;/b&gt; as primeiras coisas que vem na mente são "&lt;i&gt;&lt;span style="color: #0b5394;"&gt;classes, herança, polimorfismo, encapsulamento, lalala...&lt;/span&gt;&lt;/i&gt;". Mas essa são as regras básicas e técnicas da OO, a grande sacada dela está em independência de tecnologia, mínimo de acoplamento, reutilização de código, alinhamento do código com o negócio, coerência em problemas reais...  Olha só, agora sim estamos falando de OO resolvendo problemas reais e essa é a essencia campeonato(&lt;i&gt;entende-se campeão&lt;/i&gt;).&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Vamos ter um papo sério sem muita filosofia esse não é um artigo é mais uma conversa ok? Então vamos pensar, o Projeto Orientado a Domínio é essencialmente entendermos o negócio e tornar o código lógico a esse negócio, coeso a esse negócio, aquele papo de entity não pode ter lógica é justamente o OPOSTO do DDD pois sim vamos ter uma camada de domínio cujo qual minhas entidades são inteligentes! Separar a lógica em serviços que manipulam as entidades muitas vezes torna o reuso impossivel e é basicamente dizer &lt;b&gt;eu sou um macaco que batuco o teclado com a intenção de gerar código&lt;/b&gt;....&lt;br /&gt;&lt;br /&gt;O DDD não vai exatamente te impor como vc faz a arquitetura do seu software mas sim te abrir a mente sobre como dar funções para quem realmente merece afinal, vc não mandaria um engenheiro fazer uma cirurgia plástica não é?&lt;br /&gt;&lt;br /&gt;Veja um exemplo do DDD por "cima":&lt;/span&gt;&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1dRtsz7oauUzFGTztSnTF5y5bfYm0OMhAy4cSUfRdTH5DQB1L-JqvhPX_QyyLXWbxU2eDe6DNTtvAuzHvf441Z8v9mMqWQYb2fbBl5N-mwfq0eYI6AmA5YsqRMVABhTw6POzo6WMecg/s1600/ddd-exemplo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1dRtsz7oauUzFGTztSnTF5y5bfYm0OMhAy4cSUfRdTH5DQB1L-JqvhPX_QyyLXWbxU2eDe6DNTtvAuzHvf441Z8v9mMqWQYb2fbBl5N-mwfq0eYI6AmA5YsqRMVABhTw6POzo6WMecg/s320/ddd-exemplo.png" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Interface de Usuário&lt;/b&gt; – parte responsável pela exibição de informações do sistema ao usuário e também por interpretar comandos do usuário;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Aplicação&lt;/b&gt; – essa camada não possui lógica de negócio. Ela é apenas uma camada fina, responsável por conectar a Interface de Usuário às camadas inferiores;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Domínio&lt;/b&gt; – representa os conceitos, regras e lógicas de negócio. Todo o foco de DDD está nessa camada. Nosso trabalho, daqui para frente, será aperfeiçoar e compreender profundamente essa parte;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;b&gt;Infra-estrutura&lt;/b&gt; – fornece recursos técnicos que darão suporte às camadas superiores. São normalmente as partes de um sistema responsáveis por persistência de dados, conexões com bancos de dados, envio de mensagens por redes, gravação e leitura de discos, etc.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;O DDD basicamente começa por essa premissa básica de conhecer de fato o domínio, mas ele é muito mais amplo e mais complexo por isso eu tentei aqui dar a introdução desse mundo partindo do principio de entender essa ideia.&lt;br /&gt;&lt;br /&gt;Existem alguns pontos importantes abordados no DDD que são o uso da mesma linguagem, evitar traduções indevidas, quebrar o problema em camadas, entender entidades, agregados, objetos de valor, fábricas, serviços, repositórios, módulos entre outros.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Segue aqui a primeira versão de um slide da minha palestra sobre Domain Driven Design&lt;br /&gt;

&lt;iframe allowfullscreen="" frameborder="0" height="356" marginheight="0" marginwidth="0" scrolling="no" src="http://www.slideshare.net/slideshow/embed_code/25008273" style="border-width: 1px 1px 0; border: 1px solid #CCC; margin-bottom: 5px;" width="427"&gt; &lt;/iframe&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 5px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt; &lt;a href="https://www.slideshare.net/profpv/domain-driven-design-no-php" target="_blank" title="Domain Driven Design no PHP"&gt;Domain Driven Design no PHP&lt;/a&gt; &lt;/strong&gt; from &lt;strong&gt;&lt;a href="http://www.slideshare.net/profpv" target="_blank"&gt;Paulo Victor Gomes&lt;/a&gt;&lt;/strong&gt; &lt;/span&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;


&lt;br /&gt;&lt;br /&gt;Caso vc queira se aprofundar nos estudos então é melhor ler o livro do Evans&amp;nbsp;&lt;/span&gt;&lt;a href="http://www.informit.com/store/domain-driven-design-tackling-complexity-in-the-heart-9780321125217"&gt;http://www.informit.com/store/domain-driven-design-tackling-complexity-in-the-heart-9780321125217&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Até a próxima.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjjEzWt-S9s6uGgLYCkV_k0GzYIOAevS3rZ-hgO3OdMsLemZbA4b7uDPXWH1VKnPxahrXr7L1LxggL0NUn9sx8H9yigLMUb6EVfNSWUD-Sgm0urbQVb2-uezkFzguBfrusWuiaePmajw/s72-c/ddd-domain-driving-design-profpv.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Testando suas classes com PHPUnit</title><link>http://profpv.blogspot.com/2013/02/testando-suas-classes-com-phpunit.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Thu, 28 Feb 2013 09:05:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-2197157859189235379</guid><description>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hoje vou replicar um post do meu irmão(&lt;a href="http://developer-v.blogspot.com.br/"&gt;http://developer-v.blogspot.com.br&lt;/a&gt;), sim meu irmão também tem um blog e ele é da minha area.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Hy, folks!!!&lt;br /&gt;E ai galera, finalmente vamos fazer um post, mão-na-massa, o que seria isso ???&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuQ14MrB-TZyLo5O0GHbqMLt1YrIOwRYNvp-eeJSF-FY_d2_1j_nNmF8AIwuXdoRFdCvnImUNoHBfAsTz3Ci4nj5c2BpRSyjn0dkisf12p2muD-JKFTQbCj908dHyq8trbvDPQfH3chis/s1600/hmmm.jpg" imageanchor="1" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration: none;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuQ14MrB-TZyLo5O0GHbqMLt1YrIOwRYNvp-eeJSF-FY_d2_1j_nNmF8AIwuXdoRFdCvnImUNoHBfAsTz3Ci4nj5c2BpRSyjn0dkisf12p2muD-JKFTQbCj908dHyq8trbvDPQfH3chis/s1600/hmmm.jpg" style="-webkit-box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; padding: 5px; position: relative;" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;"&gt;
?&lt;span style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;???????????????????????&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Simples um teste em classes, vamos usar agora o PHPunit para fazer um teste que ira funcionar realmente.&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTiL5tp3SvKtPRmQwISaA1HhLvQjOL-ezt5O-pTZwNAdcGuLCu4s8N9ki8mN_iTPYZT1otAPwsJP7DKi3OFKHz6TzuUBhTAKSYWg-J9ZH58792qHK2WvUHYuqrrN6iu7An6Fjs-NSBNIM/s1600/276168_Papel-de-Parede-Meme-Grande-Sorriso-Feliz_1600x1200.jpg" imageanchor="1" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration: none;"&gt;&lt;img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTiL5tp3SvKtPRmQwISaA1HhLvQjOL-ezt5O-pTZwNAdcGuLCu4s8N9ki8mN_iTPYZT1otAPwsJP7DKi3OFKHz6TzuUBhTAKSYWg-J9ZH58792qHK2WvUHYuqrrN6iu7An6Fjs-NSBNIM/s200/276168_Papel-de-Parede-Meme-Grande-Sorriso-Feliz_1600x1200.jpg" style="-webkit-box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; padding: 5px; position: relative;" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;O&lt;/b&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&amp;nbsp;que é Unit Testing?&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Testes para pequenos trechos de código (unidades)&lt;br style="margin: 0px; padding: 0px;" /&gt;- Verifica se o comportamento de classes e funções é o esperado&lt;br style="margin: 0px; padding: 0px;" /&gt;- Caso erros são encontrados exceções são lançadas&lt;br style="margin: 0px; padding: 0px;" /&gt;- Não interfere com o seu código-fonte&lt;/span&gt;&lt;/div&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;
&lt;span style="font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Qual a vantagem?&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Os testes são automatizados&lt;br style="margin: 0px; padding: 0px;" /&gt;- Eles são executados continuamente durante o ciclo de desenvolvimento&lt;br style="margin: 0px; padding: 0px;" /&gt;- Detectam falhas tanto de digitação e lógica e também comportamentos inesperados&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Exemplo&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style-image: initial; list-style-position: initial; margin: 0px; padding: 0px 0px 0px 48px; white-space: nowrap;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Classe1&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;somar&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;+&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;subtrair&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Teste da classe&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Classe1&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$soma&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;somar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$subracao&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;subtrair&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;echo&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'2 mais 2 = '&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$soma&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;echo&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'2 menos 2 = '&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$subtracao&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Funciona conforme esperado!&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Apesar do exemplo simples, ilutra uma prática bem comum: a de inserir vários echo() e print() para confirmar o funcionamento de uma classe ou função.&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;O PHPUnit é uma framework que tem como objetivo automatizar e padronizar a forma como nosso código é testado.&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;i style="margin: 0px; padding: 0px;"&gt;"Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead."&lt;/i&gt;&amp;nbsp;-- Martin Fowler&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Ou seja: "Toda vez que sentir vontade de escrever um print ou outra expressão de debug, pare e crie um teste!"&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Especifique o caminho do PHPUnit&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;require_once&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'/usr/share/php/PHPUnit/Framework.php'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Especifique o caminho da classe a ser testada&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;require_once&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Classe1.php'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Como a classe a ser testada se chama "Classe1", a classe de teste deverá se chamar "ClasseTest" e (neste caso) irá herdar de PHPUnit_Framework_TestCase&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Classe1Test&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;PHPUnit_Framework_TestCase&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Funções de teste devem ter o prefixo "test"&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;testSoma&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// A classe a ser testada é instanciada&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Classe1&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Testamos a afirmação que "4" é o resultado de passar "2" e "2" (ou seja, 2 + 2 = 4)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'4'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;somar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;testSubtracao&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// idem (veja função acima)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Classe1&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'0'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;subtrair&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;O resultado:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; margin: 0px; padding: 0px 0px 0px 5px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;PHPUnit&lt;/span&gt;&amp;nbsp;3.3.16 by&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Sebastian&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Bergmann&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Time&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;0&lt;/span&gt;&amp;nbsp;seconds&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;OK&lt;/span&gt;&amp;nbsp;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: blue;"&gt;2&lt;/span&gt;&amp;nbsp;tests,&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;2&lt;/span&gt;&amp;nbsp;assertions&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="sy0"&gt;//&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Funciona&lt;/span&gt;&amp;nbsp;conforme esperado&lt;span class="sy0"&gt;!&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;O que aconteceu?&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Criamos uma classe (Classe1Test) de teste para testar a nossa classe (Classe1) e usamos o PHPUnit para testar o funcionamento esperado&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Não é mais complicado?&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Sim e não! Inicialmente pode parecer bem mais simples inserir alguns print() ou echo() e verificar manaulmente, mas ao longo prazo usar o PHPUnit traz diversas vantagens:&lt;br style="margin: 0px; padding: 0px;" /&gt;- Os testes ficam separados do código, assim não corremos o risco de esqueçer testes no meio do código. Devido à separação também não é necessário ficar voltando e comentando e descomentando as linhas de teste inseridas manualmente.&lt;br style="margin: 0px; padding: 0px;" /&gt;- Para aplicações um pouco mais complexas (por exemplo com várias classes interagindo juntas ou com AJAX) as vezes não é possível colocar echo() ou print() em qualquer lugar. Até mesmo o FirePHP gera erros de 'header'!&lt;br style="margin: 0px; padding: 0px;" /&gt;- Usando o PHPUnit criamos vários testes e sempre que desejarmos podemos rodá-los novamente para testar modificações.&lt;br style="margin: 0px; padding: 0px;" /&gt;- E o melhor de tudo, não precisamos fazer nada na hora de colocar a aplicação no ar. Simplesmente não fazemos o upload da pasta de testes! O código-fonte original segue intacto.&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Como funciona?&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Crie uma classe de teste para testar uma classe já existente&lt;br style="margin: 0px; padding: 0px;" /&gt;- Excute os testes no terminal (ou prompt de comando) e veja os resultados&lt;br style="margin: 0px; padding: 0px;" /&gt;- A melhor maneira da aprender isto é através de exemplos então vamos instalar o PHPUnit e criar alguns testes!&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Instalação do PHPUnit&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Quem usa o linux pode fazer facilmente:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; margin: 0px; padding: 0px 0px 0px 5px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# se não tiver o PEAR instalado&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
apt&lt;span class="sy0" style="color: #339933;"&gt;-&lt;/span&gt;get install pear&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# descubra o canal do PHPUnit&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
pear channel&lt;span class="sy0" style="color: #339933;"&gt;-&lt;/span&gt;discover pear&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;phpunit&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;de&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# instale o phpunit&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
pear install phpunit&lt;span class="sy0" style="color: #339933;"&gt;/&lt;/span&gt;PHPUnit&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# Ele fica instalado por padrão no /usr/share/php/PHPUnit&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# Agora é só incluir o framework nos arquivos de teste e começar!&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Quem usa windows procure no google! Não deve ser muito complicado... (se não me engano ele já vem incluso no pacote XAMPP)&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Guia para criar Unit Tests&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Os testes para a classe "Classe1" (Classe1.php) deverão ser localizados dentro da classe "Classe1Test" (Classe1Test.php),&amp;nbsp;&lt;i style="margin: 0px; padding: 0px;"&gt;sempre use o sufixo "Test" (NomeDaClasseTest)&lt;/i&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Na maioria dos casos a classe de teste irá herdar (extends) da classe PHPUnit_Framework_TestCase&lt;br style="margin: 0px; padding: 0px;" /&gt;- Os testes deverão ser funções públicas com o prefixo "test" (testSomar, testSubtrair, etc)&lt;br style="margin: 0px; padding: 0px;" /&gt;- Os testes são baseados em afirmações, ou seja: afirmamos que o resultado esperado da função X é Y, e testamos a afirmação pra ver se ela procede.&lt;br style="margin: 0px; padding: 0px;" /&gt;- Usamos funções como assertEquals() para testar afirmações (exemplos a seguir)&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Algumas Afirmações disponíveis (Funções de Teste)&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- Existem dezenas (veja a documentação http://www.phpunit.de/manual/), seguem algumas das mais comuns:&lt;br style="margin: 0px; padding: 0px;" /&gt;- assertEquals($valor, funcao()) (afirma que o valor retornado da funcao é igual a $valor)&lt;br style="margin: 0px; padding: 0px;" /&gt;- assertNotEquals($valor, funcao()) (afirma que o valor retornado da funcao não é igual a $valor)&lt;br style="margin: 0px; padding: 0px;" /&gt;- assertSame($valor, funcao()) (testa se o objeto retornado é igual a $valor)&lt;br style="margin: 0px; padding: 0px;" /&gt;- assertTrue(funcao()) (afirma que o valor retornado é === true)&lt;br style="margin: 0px; padding: 0px;" /&gt;- assertFalse(funcao()) (=== false)&lt;br style="margin: 0px; padding: 0px;" /&gt;- setExpectedException (avisa sobre uma exceção que deverá ser lançada)&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Como rodar os testes&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Através do terminal (ou prompt de comando), no diretório do arquivo de teste digite:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; margin: 0px; padding: 0px 0px 0px 5px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
phpunit NomeDaClasseTest&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co2" style="color: #666666; font-style: italic;"&gt;# para rodar os testes contidos no arquivo NomeDaClasseTest.php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Vamos ver alguns exemplos na próxima página.&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;O test seguinte usa a função assertEquals() para checar o retorno de um método:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Especifique o caminho do PHPUnit&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;require_once&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'/usr/share/php/PHPUnit/Framework.php'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Especifique o caminho da classe a ser testada&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;require_once&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Classe2.php'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Classe2Test&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;PHPUnit_Framework_TestCase&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;testCumprimentarSemParametro&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// O comportamento esperado é que retorne "Olá fulano", testa esta afirmação&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Olá fulano'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;cumprimentar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;testCumprimentarComParametro&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Instancia a classe e passa "Alex" ao construtor&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Classe2&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Alex'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// O comportamento esperado é que retorne "Olá Alex", testa esta afirmação&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Olá Alex'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;cumprimentar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Funções de teste também podem ser identificados pela anotação @test no DocBlock&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @test&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;vaiDarErrado&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Instancia a classe e passa "ciclano" ao construtor&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Classe2&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'ciclano'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// O comportamento esperado é que retorne "Olá ciclano", mas vamos afirmar que retornará outro valor para forçar um erro&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Olá Alex'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$foo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;cumprimentar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Outro teste simples que retorna o seguinte:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; margin: 0px; padding: 0px 0px 0px 5px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;PHPUnit&lt;/span&gt;&amp;nbsp;3.3.16 by&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Sebastian&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Bergmann&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
..&lt;span class="re0" style="color: green;"&gt;F&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Time&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;0&lt;/span&gt;&amp;nbsp;seconds&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;There&lt;/span&gt;&amp;nbsp;was&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="color: #333399;"&gt;failure&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&amp;nbsp;vaiDarErrado&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Classe2Test&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Failed&lt;/span&gt;&amp;nbsp;asserting that two strings are equal.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
expected string&amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Ol&lt;/span&gt;á&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Alex&lt;/span&gt;&lt;span class="sy0"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
difference &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; xxxx&lt;span class="sy0"&gt;???&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
got string &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Ol&lt;/span&gt;á ciclano&lt;span class="sy0"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="sy0"&gt;/&lt;/span&gt;caminho&lt;span class="sy0"&gt;/&lt;/span&gt;para&lt;span class="sy0"&gt;/&lt;/span&gt;o&lt;span class="sy0"&gt;/&lt;/span&gt;arquivo&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Classe2Test&lt;/span&gt;.php&lt;span class="sy0"&gt;:&lt;/span&gt;&lt;span class="nu0" style="color: blue;"&gt;35&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;FAILURES&lt;/span&gt;&lt;span class="sy0"&gt;!&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Tests&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Assertions&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Failures&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Ou seja, quando um teste falha ele informa o arquivo e linha onde ocorreu o erro.&lt;br style="margin: 0px; padding: 0px;" /&gt;Explica também qual foi o erro:&lt;br style="margin: 0px; padding: 0px;" /&gt;- O valor esperado era "Ola Alex"&lt;br style="margin: 0px; padding: 0px;" /&gt;- O valor retornado foi "Ola ciclano"&lt;br style="margin: 0px; padding: 0px;" /&gt;E ele ainda mostra a diferença ( xxxx???)&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Fornecendo valores para os testes&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- As vezes não basta só um teste com um valor estático&lt;br style="margin: 0px; padding: 0px;" /&gt;- Podemos criar uma função para alimentar o teste usando vários valores (e nada impede que sejam de fontes externas)&lt;br style="margin: 0px; padding: 0px;" /&gt;- A função é identificada através da anotação @dataProvider no DocBlock&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Exemplo:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Uma versão um pouco mais complicada para explicar o uso do data provider em testes:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Demonstração de "Data Providers"&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Classe3Test&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;PHPUnit_Framework_TestCase&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Informa o nome do forneçedor de dados (@dataProvider) para a clase de teste&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @dataProvider provider&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Recebe 3 parâmetros&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;testCombine&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$c&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Afirma que o valor do terceiro parâmetro é igual a concatenação dos primeiros dois separados por um espaço&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;assertEquals&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$c&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$a&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;' '&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;.&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$b&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// A função fornecedora de valores&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;provider&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// retorna um array contendo 3 grupos de valores a serem testados&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span class="kw3" style="color: #990000;"&gt;array&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw3" style="color: #990000;"&gt;array&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Hello'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'World'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Hello World'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw3" style="color: #990000;"&gt;array&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'É'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Nois'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'É Nois'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw3" style="color: #990000;"&gt;array&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Deu'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Errado'&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&amp;nbsp;&lt;span class="st_h" style="color: blue;"&gt;'Deu Certo'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Valor retornado:&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;ol style="background-color: #f8f8f8; color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 12px; line-height: 21px; list-style: none; margin: 0px; padding: 0px 0px 0px 5px;"&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;PHPUnit&lt;/span&gt;&amp;nbsp;3.3.16 by&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Sebastian&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Bergmann&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
..&lt;span class="re0" style="color: green;"&gt;F&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Time&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;0&lt;/span&gt;&amp;nbsp;seconds&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;There&lt;/span&gt;&amp;nbsp;was&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="color: #333399;"&gt;failure&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&amp;nbsp;testCombine&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Classe3Test&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&amp;nbsp;with data set #&lt;span class="nu0" style="color: blue;"&gt;2&lt;/span&gt;&amp;nbsp;&lt;span class="br0"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: #00b7b7;"&gt;'Deu'&lt;/span&gt;,&amp;nbsp;&lt;span class="st0" style="color: #00b7b7;"&gt;'Errado'&lt;/span&gt;,&amp;nbsp;&lt;span class="st0" style="color: #00b7b7;"&gt;'Deu Certo'&lt;/span&gt;&lt;span class="br0"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Failed&lt;/span&gt;&amp;nbsp;asserting that two strings are equal.&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
expected string&amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Deu&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Certo&lt;/span&gt;&lt;span class="sy0"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
difference &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;xxxxx&lt;span class="sy0"&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
got string &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="sy0"&gt;&amp;lt;&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Deu&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Errado&lt;/span&gt;&lt;span class="sy0"&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="sy0"&gt;/&lt;/span&gt;home&lt;span class="sy0"&gt;/&lt;/span&gt;alex&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Documents&lt;/span&gt;&lt;span class="sy0"&gt;/&lt;/span&gt;aw&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Articles&lt;/span&gt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;PHPUnit&lt;/span&gt;&lt;span class="sy0"&gt;/&lt;/span&gt;&lt;span class="re0" style="color: green;"&gt;Classe3Test&lt;/span&gt;.php&lt;span class="sy0"&gt;:&lt;/span&gt;&lt;span class="nu0" style="color: blue;"&gt;16&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de2" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;FAILURES&lt;/span&gt;&lt;span class="sy0"&gt;!&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; margin: 0px 0px 0.25em; padding: 0px;"&gt;&lt;div class="de1" style="border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: green;"&gt;Tests&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Assertions&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;3&lt;/span&gt;,&amp;nbsp;&lt;span class="re0" style="color: green;"&gt;Failures&lt;/span&gt;&lt;span class="sy0"&gt;:&lt;/span&gt;&amp;nbsp;&lt;span class="nu0" style="color: blue;"&gt;1&lt;/span&gt;.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;" /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;&lt;b style="margin: 0px; padding: 0px;"&gt;Resumindo...&lt;/b&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;- O assunto é bastante extenso e realmente fica difícil cobrir todas as possibilidades (que são quase infinitas)&lt;br style="margin: 0px; padding: 0px;" /&gt;- É possível criar testes para testar se Exceções são lançadas conforme esperado, para testar classes de acesso ao banco de dados e muito mais&lt;br style="margin: 0px; padding: 0px;" /&gt;- O ideal seria implementar isto em uma aplicação que esteja desenvolvendo, ou seja, crie uma pasta para os testes e vá criando testes para as suas classes nela&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Todo o código-fonte para os exemplos e outros exemplos mais complexos (todos bem documentados) estão disponíveis:&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Espero que tenham gostado e que eu tenha introduzido bem este assunto que é frequentemente subestimado e importantíssimo quande se trata de desenvolvimento.&lt;br style="margin: 0px; padding: 0px;" /&gt;&lt;br style="margin: 0px; padding: 0px;" /&gt;Este post, foi melhorado para uma linguagem mais visual e facíl de entender =D...&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: xx-small;"&gt;Fonte PHPbr&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="background-color: white; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;/span&gt;
&lt;div class="separator" style="background-color: white; clear: both; color: #666666; font-family: 'Trebuchet MS', Trebuchet, Verdana, sans-serif; font-size: 13px; line-height: 18px; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf1vvknar1UqiSqDnLN3lYlnWoYDms1LNhyphenhyphenkimMzQhL6fUYP_vZAymcXtgDejF2sCqHxrVM14LpPTbToqPEqhB7b0ReH1Uj0hQ4vXxNGqMjXfo9sZ0Ul3rY00nMg8wr2lwLHRjFYDNa1M/s1600/mother-of-god-meme.jpg" imageanchor="1" style="color: #888888; margin-left: 1em; margin-right: 1em; text-decoration: none;"&gt;&lt;img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf1vvknar1UqiSqDnLN3lYlnWoYDms1LNhyphenhyphenkimMzQhL6fUYP_vZAymcXtgDejF2sCqHxrVM14LpPTbToqPEqhB7b0ReH1Uj0hQ4vXxNGqMjXfo9sZ0Ul3rY00nMg8wr2lwLHRjFYDNa1M/s320/mother-of-god-meme.jpg" style="-webkit-box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 1px solid transparent; box-shadow: rgba(0, 0, 0, 0.0980392) 1px 1px 5px; padding: 5px; position: relative;" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="background-color: white; color: #666666; font-family: Verdana, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuQ14MrB-TZyLo5O0GHbqMLt1YrIOwRYNvp-eeJSF-FY_d2_1j_nNmF8AIwuXdoRFdCvnImUNoHBfAsTz3Ci4nj5c2BpRSyjn0dkisf12p2muD-JKFTQbCj908dHyq8trbvDPQfH3chis/s72-c/hmmm.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Zipando arquivos com Zend Framework</title><link>http://profpv.blogspot.com/2013/01/zipando-arquivos-com-zend-framework.html</link><category>zend framework</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 18 Jan 2013 16:25:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-5090505154678800690</guid><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-rdIDDu9sBik/UPmLnD3hBPI/AAAAAAAAAG4/vAX4F19T5-w/s1600/Folder-Archive-zip-icon.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="200" src="http://2.bp.blogspot.com/-rdIDDu9sBik/UPmLnD3hBPI/AAAAAAAAAG4/vAX4F19T5-w/s200/Folder-Archive-zip-icon.png" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hoje vou explicar como podemos comprimir arquivos em .zip utilizando a classe&amp;nbsp;&lt;a href="http://framework.zend.com/apidoc/2.0/classes/Zend.Filter.Compress.Zip.html"&gt;&lt;b&gt;&lt;span style="color: #38761d;"&gt;Zend_Filter_Compress_Zip&lt;/span&gt;&lt;/b&gt;&lt;/a&gt;&amp;nbsp;do Zend Framework.&lt;br /&gt;&lt;br /&gt;&lt;i style="font-size: small;"&gt;Versão do meu Zend Framework: 1.12 (a ultima versão antes do &lt;/i&gt;&lt;b style="font-size: small; font-style: italic;"&gt;&lt;span style="color: #274e13;"&gt;ZF2&lt;/span&gt;&lt;/b&gt;&lt;i style="font-size: small;"&gt;)&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;O problema&lt;/b&gt;&lt;br /&gt;Algumas vezes precisamos gerar uma coleção de arquivos e comprimi-los em um unico lugar para efetivar o download ao usuario. Esse problema pode ser facilmente resolvido com as classes de ZIP do PHP mas é muito melhor utilizar uma classe util do &lt;b&gt;&lt;span style="color: #38761d;"&gt;Zend Framework&lt;/span&gt;&lt;/b&gt; que agiliza todo o seu tempo de desenvolvimento além de ter maior rigor nessa compressão.&lt;/span&gt;&lt;a href="http://1.bp.blogspot.com/-WdeOEXb8fvY/UPmP2YtfX6I/AAAAAAAAAHI/QudT8bLwmaY/s1600/why-u-no-guy-meme.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/-WdeOEXb8fvY/UPmP2YtfX6I/AAAAAAAAAHI/QudT8bLwmaY/s200/why-u-no-guy-meme.gif" width="200" /&gt;&lt;/a&gt;&amp;nbsp;&lt;span style="font-size: large;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Ta mas e ai, como faço para utilizar essa&amp;nbsp;&lt;/span&gt;&lt;b style="font-family: Arial, Helvetica, sans-serif;"&gt;Zend_Filter_Compress_Zip&lt;/b&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;?&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;O uso é bem simples veja:&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
USO DA&amp;nbsp;&lt;span style="background-color: white; color: black; font-size: 12px; text-transform: none;"&gt;Zend_Filter_Compress_Zip&lt;/span&gt;&lt;br /&gt;
&lt;div class="zclip" id="zclip-ZeroClipboardMovie_1" style="height: 12px; left: 293px; position: absolute; top: 327px; width: 21px; z-index: 99;"&gt;
&lt;embed align="middle" allowfullscreen="false" allowscriptaccess="always" bgcolor="#ffffff" flashvars="id=1&amp;amp;width=21&amp;amp;height=12" height="12" id="ZeroClipboardMovie_1" loop="false" menu="false" name="ZeroClipboardMovie_1" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" src="http://pastebin.com/js/ZeroClipboard.swf" type="application/x-shockwave-flash" width="21" wmode="transparent"&gt;&lt;/embed&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;* @Desc Exemplo simples de compressão de arquivos&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;exemplozipAction&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$zip&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Zend_Filter_Compress_Zip&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="coMULTI" style="color: #666666; font-style: italic;"&gt;/* O SEU ZIP COM O PATH E NOME */&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$zip&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setArchive&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"/conteudo/exemplo.zip"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="coMULTI" style="color: #666666; font-style: italic;"&gt;/* O DESTINO */&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$zip&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setTarget&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"/conteudo/"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="coMULTI" style="color: #666666; font-style: italic;"&gt;/* O ARQUIVO OU PASTA COM OS ARQUIVOS QUE SERÃO COMPRIMIDOS */&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$arquivoZipado&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$zip&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;compress&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"/conteudo/tmp/"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;view&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;arquivoZipado&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$arquivoZipado&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Basicamente o que fazemos ai é, criar o objeto &lt;span style="color: #073763;"&gt;&lt;b&gt;$zip&lt;/b&gt;&lt;/span&gt; da&lt;b&gt; Zend_Filter_Compress_Zip&lt;/b&gt; definir o arquivo zip que será gerado, definir o destino e passar o arquivo ou o diretorio a ser comprimido(Todos os arquivos dentro do diretório serão comprimidos).&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;Depois é só mandar para download.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Simples não é? Veja que fiz esse artigo essencialmente para deixar claro que se vc utiliza o Zend Framework é bom que aproveite tudo que ele tem e não apenas a estrutura básica.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;É ISSO AI, ATÉ A PRÓXIMA!&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/-Dmv3JoXYZ8o/UPmTjInxgNI/AAAAAAAAAHY/6IaIM1n0Fr0/s1600/meme_chorando_porquinho_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"&gt;&lt;img border="0" height="276" src="http://3.bp.blogspot.com/-Dmv3JoXYZ8o/UPmTjInxgNI/AAAAAAAAAHY/6IaIM1n0Fr0/s320/meme_chorando_porquinho_1.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="http://2.bp.blogspot.com/-rdIDDu9sBik/UPmLnD3hBPI/AAAAAAAAAG4/vAX4F19T5-w/s72-c/Folder-Archive-zip-icon.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item><item><title>Descompilando</title><link>http://profpv.blogspot.com/2013/01/descompilando.html</link><author>noreply@blogger.com (Anonymous)</author><pubDate>Fri, 11 Jan 2013 13:29:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-8681295497353500326</guid><description>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Olá pessoas tudo bem?&lt;br /&gt;&lt;br /&gt;Faz um tempo que não escrevo nada no blog isso acontece por muitos motivos mas o principal é que não ando muito inspirado e concentrado. Esse artigo é apenas para divulgar a união de blogs com meus amigos de desenvolvimento que acabou gerando a criação de um unico site onde vamos inserir nossos artigos. &lt;br /&gt;&lt;br /&gt;O nome do site é "Descompilando" e o site é o&amp;nbsp;&lt;a href="http://descompilando.com.br/"&gt;descompilando.com.br&lt;/a&gt;&amp;nbsp;para facilitar nossas vidas importamos todos os artigos dos blogs existentes e a partir dai começamos a escrever novos artigos. Não vou largar meu blog pois todo artigo que eu escrever la eu escrevo aqui(imaginamos então que eu não ando escrevendo nada nos dois blogs).&lt;br /&gt;&lt;/span&gt;Bem é isso ando tão sem criatividade que até para falar nada eu falo nada.</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Annotations no Doctrine - @Column</title><link>http://profpv.blogspot.com/2012/11/annotations-no-doctrine-column.html</link><category>annotations no doctrine</category><category>doctrine</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 20 Nov 2012 09:28:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-6643712643108095639</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Nesse post vou falar um pouco sobre as Annotations no Doctrine buscando deixar essa página como guia de consulta rápida para vc escrever suas entidades ok?&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjG_btDFYifvZP0VPNkqtv2GAdikMeOdLwpoiOfFJ6qwpCuZMShMrHpLyTi3StZl-pZZOMh0HJB4nfZFdJ3RhpT7MmOpN9D2wF_ov0OAtnJL-2NOFbR4hUJ1LMg5Gh6fR81fe08Qw1ag/s1600/gangnam-style.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjG_btDFYifvZP0VPNkqtv2GAdikMeOdLwpoiOfFJ6qwpCuZMShMrHpLyTi3StZl-pZZOMh0HJB4nfZFdJ3RhpT7MmOpN9D2wF_ov0OAtnJL-2NOFbR4hUJ1LMg5Gh6fR81fe08Qw1ag/s320/gangnam-style.jpg" width="320" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;b&gt;O que vc precisa saber para entender esse artigo:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ul style="text-align: left;"&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;Lógica de programação&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;PHP&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;POO&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;ORM&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;Conhecer pelo menos o básico de Doctrine&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div style="clear: both;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Bem, o que são essas annotations? Para quem conhece Java sabe que é&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&amp;nbsp;indiscutível a agilidade e facilidade de configuração que as annotations proporcionam, elas são formas de descrever toda uma classe através de comentários.&lt;/span&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;Com o objetivo de trazer tal comodidade ao&amp;nbsp;&lt;/span&gt;&lt;a href="http://php.net/" style="background-color: white; border: 0px; color: #225e9b; line-height: 24.633333206176758px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;PHP&lt;/a&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&amp;nbsp;surgiu o projeto&amp;nbsp;&lt;/span&gt;&lt;a href="http://code.google.com/p/addendum/" style="background-color: white; border: 0px; color: #225e9b; line-height: 24.633333206176758px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Addendum&lt;/a&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&amp;nbsp;– escrito por&amp;nbsp;&lt;/span&gt;&lt;a href="http://jsmf.net/" style="background-color: white; border: 0px; color: #225e9b; line-height: 24.633333206176758px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Jan Suchal&lt;/a&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&amp;nbsp;– que permite via&amp;nbsp;&lt;/span&gt;&lt;a href="http://profpv.blogspot.com.br/2012/07/reflection-no-php.html" style="background-color: white; border: 0px; color: #225e9b; line-height: 24.633333206176758px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Reflection&lt;/a&gt;&lt;span style="background-color: white; line-height: 24.633333206176758px;"&gt;&amp;nbsp;acessar as annotations das classes.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="background-color: white; border: 0px; line-height: 24.633333206176758px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;As annotations devem ser escritas em blocos de comentários, uma vez que o&amp;nbsp;&lt;a href="http://thesmithfam.org/blog/2006/05/07/php-the-operator/" style="background-color: transparent; border: 0px; color: #225e9b; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;@&lt;/a&gt;&amp;nbsp;(caracter que inicia uma annotation) é um caractere reservado no PHP. Elas podem ser mono ou multi valoradas de acordo com os exemplos abaixo.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
&lt;br /&gt;
&lt;div class="zclip" id="zclip-ZeroClipboardMovie_1" style="height: 12px; left: 85px; position: absolute; top: 287px; width: 21px; z-index: 99;"&gt;
&lt;embed align="middle" allowfullscreen="false" allowscriptaccess="always" bgcolor="#ffffff" flashvars="id=1&amp;amp;width=21&amp;amp;height=12" height="12" id="ZeroClipboardMovie_1" loop="false" menu="false" name="ZeroClipboardMovie_1" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" src="http://pastebin.com/js/ZeroClipboard.swf" type="application/x-shockwave-flash" width="21" wmode="transparent"&gt;&lt;/embed&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Custom annotation &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Persistent&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;Annotation&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Custom annotation &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Table&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;Annotation&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Multi valued annotation &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Secured&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;extends&lt;/span&gt;&amp;nbsp;Annotation&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$role&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$level&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/** &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @Persistent &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @Table("people")&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @Secured(role = "admin", level = 2)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*/&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Person&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// some code &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// getting the annotation by class name &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$reflection&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;ReflectionAnnotatedClass&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Person'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// getting the annotation by instance &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$person&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;Person&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$reflection&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;new&lt;/span&gt;&amp;nbsp;ReflectionAnnotatedClass&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$person&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// true &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$reflection&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;hasAnnotation&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Persistent'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// contains string "people" &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$reflection&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getAnnotation&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Table'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;value&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;No doctrine usamos as annotations para descrever uma classe que representa uma entidade do sistema ou seja, uma tabela no banco,&amp;nbsp;seguindo a mesma onda da&amp;nbsp;&lt;a href="http://java.sun.com/javaee/technologies/persistence.jsp" style="border: 0px; color: #225e9b; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;JPA&lt;/a&gt;,&amp;nbsp;facilitando a configuração das classes de persistência e seus relacionamentos.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
&lt;br /&gt;
&lt;div class="zclip" id="zclip-ZeroClipboardMovie_1" style="height: 12px; left: 85px; position: absolute; top: 287px; width: 21px; z-index: 99;"&gt;
&lt;embed align="middle" allowfullscreen="false" allowscriptaccess="always" bgcolor="#ffffff" flashvars="id=1&amp;amp;width=21&amp;amp;height=12" height="12" id="ZeroClipboardMovie_1" loop="false" menu="false" name="ZeroClipboardMovie_1" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="best" src="http://pastebin.com/js/ZeroClipboard.swf" type="application/x-shockwave-flash" width="21" wmode="transparent"&gt;&lt;/embed&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @DoctrineEntity(tableName="pessoa")&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*/&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;Pessoa&amp;nbsp;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineId&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineColumn(type="integer")&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineIdGenerator("auto")&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$id&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineColumn(type="varchar", length=255)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineColumn(type="varchar")&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$sobrenome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; * @DoctrineManyToOne(targetEntity="Usuario",&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;joinColumns={"user_id" = "id"})&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; */&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$usuario&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Vejam que acabamos de criar uma entidade pessoa onde apontamos os campos e os tipos dos campos, no ultimo uma outra entidade(usuario) montando o relacionamento &lt;b&gt;ManyToOne&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1EMaXyQYlW4tOFo3pCtZ9nA0XC6rLhmDnOOhfaD-FVm7_uiTtKgnndAkl59GXzW_dTrZArZLB1CUkN2SuyTqO2aATCY9SDZD8hDTd3lATEPfwpYebN3xSby0w5A8wenkbLNoNc2hrfQ/s1600/thumb2_3242.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1EMaXyQYlW4tOFo3pCtZ9nA0XC6rLhmDnOOhfaD-FVm7_uiTtKgnndAkl59GXzW_dTrZArZLB1CUkN2SuyTqO2aATCY9SDZD8hDTd3lATEPfwpYebN3xSby0w5A8wenkbLNoNc2hrfQ/s200/thumb2_3242.jpg" width="200" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;Bem eu precisei dar essa parte básica do Doctrine para finalmente montarmos uma relação das annotations então, chega de enrolar.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Annotations Doctrine&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span style="font-size: large;"&gt;@Column (O mais utilizado, e o mais básico)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;Esse é o carinha que define a maioria das colunas que criamos dentro de nossas entidades, o proprio nome diz, é ele que marca um atributo como uma coluna válida no banco. Qualquer espera de valor dentro desta variável será salvo e carregado a partir do banco de dados como parte do ciclo de vida das variáveis ​​de instância da entidade de classe.&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="background-color: white; font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Atributos requeridos:&lt;/span&gt;&lt;/div&gt;
&lt;ul class="simple" style="background-color: white; font-size: 13px; list-style-type: square; margin: 0px 0px 10px 30px; padding: 0px;"&gt;
&lt;li style="list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;type&lt;/strong&gt;: Tipo do atributo para que seja criado a coluna no banco baseado nesse tipo como por exemplo char, int etc...&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="background-color: white; font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Atributos opcionais:&lt;/span&gt;&lt;/div&gt;
&lt;ul style="background-color: white; list-style-type: square; margin: 0px 0px 10px 30px; padding: 0px;"&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;name&lt;/strong&gt;: Por padrão o nome do atributo é o nome da coluna no banco(sem o $ é claro), mas pe possível determinar um outro nome para a coluna utilizando o name.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;length&lt;/strong&gt;: Usado para tipo "string" serve para determinar o limite máximo de caracteres dessa coluna. O Doctrine não valida o tamanho da string no funcionamento do sistema, oque aconteceria era um funcionamento comum onde apenas o limite liberado é que seria gravado no banco de dados.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;precision&lt;/strong&gt;: Marca a precisão de números decimais(número exato) da coluna (Aplicado apenas para colunas decimais)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;scale&lt;/strong&gt;: The scale for a decimal (exact numeric) column (Applies only for decimal column)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;unique&lt;/strong&gt;: Valor booleano que determina se o valo é unico.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="font-size: 13px; list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;nullable&lt;/strong&gt;: Determina se coluna pode ser NULL.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style="list-style-type: square; margin: 10px 0px 0px 30px; padding: 0px;"&gt;&lt;div class="first" style="font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;columnDefinition&lt;/strong&gt;: &amp;nbsp;&lt;span style="font-size: x-small;"&gt;DDL SQL trecho que se inicia após o nome da coluna e especifica a definição de coluna completa (non-portable!). Este atributo permite fazer uso de recursos avançados RMDBS. No entanto, você deve fazer uso cuidadoso deste recurso tomando cuidado com as conseqüências. SchemaTool não irá detectar alterações na coluna mais correctamente se você usar "ColumnDefinition".&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="line-height: 16px;"&gt;Além disso, você deve se lembrar que o "type" ainda lida com a conversão entre PHP e os valores do banco de dados. Se você usar esse atributo em uma coluna que é usada para junções entre tabelas você também deve dar uma olhada em @ JoinColumn.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"&gt;&lt;span style="line-height: 16px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;div class="section" id="column" style="margin: 0px; padding: 0px;"&gt;
&lt;div style="font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Exemplos simples:&lt;/span&gt;&lt;/div&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-size: 16px; line-height: 24px; margin: 0px 0px 10px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-size: 0.9em; height: 30px; padding: 0px 8px; text-transform: uppercase;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class="php" style="color: #acacac;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="font-weight: bold;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="kw2" style="font-weight: bold;"&gt;namespace&lt;/span&gt;&amp;nbsp;GuestBook\Model\Doctrine\Entity&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;* @Table(name="guestbook")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;* @Entity&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="kw2" style="font-weight: bold;"&gt;class&lt;/span&gt;&amp;nbsp;GuestBookDoctrine&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @var integer $id&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @Column(type="integer")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @Id&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @GeneratedValue(strategy="IDENTITY")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;private&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$id&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;setId&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$id&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;id&lt;/span&gt;&amp;nbsp;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$id&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;getId&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;id&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @Column(type="string", length="100")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;private&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$title&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;setTitle&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$title&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;title&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$title&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span class="kw2" style="font-weight: bold;"&gt;function&lt;/span&gt;&amp;nbsp;getTitle&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&amp;nbsp;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;title&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="-webkit-user-select: none;"&gt;&lt;div class="de2" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="-webkit-user-select: none;"&gt;&lt;div class="de1" style="-webkit-user-select: text; background-color: white; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style="font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-size: 13px; line-height: 16px; margin-bottom: 15px; margin-left: 30px; margin-right: 30px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Exemplo da documentação do doctrine:&lt;/span&gt;&lt;/div&gt;
&lt;div class="highlight-php" style="margin: 0px; padding: 0px;"&gt;
&lt;div class="highlight" style="background-color: black; background-position: initial initial; background-repeat: initial initial; margin: 0px 0px 10px 30px; overflow: auto; padding: 0px;"&gt;
&lt;pre style="border-left-style: none; border-right-style: none; color: white; font-size: 13px; line-height: 17.316667556762695px; overflow-x: auto; overflow-y: hidden; padding: 0.7em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="cp" style="color: #a0a0a0;"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt;/**&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; * @Column(type="string", length=32, unique=true, nullable=false)&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; */&lt;/span&gt;
&lt;span class="k" style="color: #ff8400;"&gt;protected&lt;/span&gt; &lt;span class="nv"&gt;$username&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;;&lt;/span&gt;

&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt;/**&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; * @Column(type="string", columnDefinition="CHAR(2) NOT NULL")&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; */&lt;/span&gt;
&lt;span class="k" style="color: #ff8400;"&gt;protected&lt;/span&gt; &lt;span class="nv"&gt;$country&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;;&lt;/span&gt;

&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt;/**&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; * @Column(type="decimal", precision=2, scale=1)&lt;/span&gt;
&lt;span class="sd" style="color: #b729d9; font-style: italic;"&gt; */&lt;/span&gt;
&lt;span class="k" style="color: #ff8400;"&gt;protected&lt;/span&gt; &lt;span class="nv"&gt;$height&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;;&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="section" id="changetrackingpolicy" style="margin: 0px; padding: 0px;"&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span id="annref-changetrackingpolicy" style="background-color: white; font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Bem acho que por hoje é só, até o próximo artigo sobre mais annotations do doctrine.&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhboKA5aG4n_vqmVDA5niHS9RbaO69p3g5SgP20TO_s7BdvWyhsW0b-4YIE1V94sav0gWkp9BMwQRh3VCd_tDwgF8tejYF11-sOkiSnDRIEPpmz8924S_jbmeKnWtz_M60oYwaXsCI_qg/s1600/a9.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhboKA5aG4n_vqmVDA5niHS9RbaO69p3g5SgP20TO_s7BdvWyhsW0b-4YIE1V94sav0gWkp9BMwQRh3VCd_tDwgF8tejYF11-sOkiSnDRIEPpmz8924S_jbmeKnWtz_M60oYwaXsCI_qg/s1600/a9.gif" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjjG_btDFYifvZP0VPNkqtv2GAdikMeOdLwpoiOfFJ6qwpCuZMShMrHpLyTi3StZl-pZZOMh0HJB4nfZFdJ3RhpT7MmOpN9D2wF_ov0OAtnJL-2NOFbR4hUJ1LMg5Gh6fR81fe08Qw1ag/s72-c/gangnam-style.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>utilizando o VIM </title><link>http://profpv.blogspot.com/2012/11/utilizando-o-vim.html</link><category>comandos linux</category><category>console linux</category><category>linux</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 11 Nov 2012 08:03:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-6227806224575692377</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;mzoc style="-webkit-text-size-adjust: none; background-color: white; font-family: Ubuntu; font-size: 15px; line-height: 25px;"&gt;Olá amigos, hoje vou iniciar uma sequencia legal sobre o editor de textos VIM. &lt;br /&gt;O&amp;nbsp;sistema Operacional&amp;nbsp;GNU/LINUX possui um editor de texto chamado&amp;nbsp;&lt;/mzoc&gt;&lt;strong style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;VIM&lt;/strong&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; font-family: Ubuntu; font-size: 15px; line-height: 25px;"&gt;,&lt;/span&gt;&lt;strong style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/strong&gt;&lt;span style="-webkit-text-size-adjust: none; background-color: white; font-family: Ubuntu; font-size: 15px; line-height: 25px;"&gt;no qual pode ser utilizado em terminais para a edição de arquivos de texto.&lt;/span&gt;&lt;br /&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
O&amp;nbsp;&lt;strong style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Vim&lt;/strong&gt;&lt;mzoc&gt;&amp;nbsp; além de ser um&amp;nbsp;&lt;a href="http://www.ubuntudicas.com.br/blog/2012/08/vim-editor-de-textos/#" rel="nofollow" style="-webkit-tap-highlight-color: rgb(208, 72, 21); background-color: transparent; border-bottom-style: dotted; border-width: 0px 0px 1px; color: #007d3e; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;editor&lt;/a&gt;&amp;nbsp;de texto comum este também possui recursos para ser utilizado como um editor de programação, como por exemplo a mudança de usuário de comum para administrador, retirar senhas de usúario por algum motivo, editar configurações de arquivo, etc&lt;/mzoc&gt;&lt;/div&gt;
&lt;h2 style="-webkit-text-size-adjust: none; background-color: white; border: 0px; color: #1c0915; font-family: Ubuntu; font-size: 18px; line-height: 24px; margin: 0px 0px 20px; outline: 0px; padding: 20px 0px 0px; vertical-align: baseline;"&gt;
Instalação do editor de texto VIM:&lt;/h2&gt;
&lt;div class="syntax-container" style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin: 0px; max-width: 100%; outline: 0px; padding: 1em 20pt; position: relative; vertical-align: baseline;"&gt;
&lt;ol class="syntax highlighted" style="background-color: #e3e3e3; border: 1px solid rgb(170, 170, 170); font-family: Menlo, Monaco, Consolas, monospace; font-size: 12px; line-height: 1.5em; list-style-image: initial; list-style-position: initial; margin: 0px !important; outline: 0px; padding: 0px 0px 0px 5em !important; vertical-align: baseline;"&gt;
&lt;li class="line ln1 alt first" style="background-color: transparent; border-bottom-width: 0px; border-left-style: none; border-right-width: 0px; border-top-width: 0px; color: #979797; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;div class="source plain" style="background-color: whitesmoke; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-width: 0px 0px 0px 1px; color: #333333; margin: 0px 0px 0px -0.5em; max-width: 100%; outline: 0px; padding: 0px 0.4em !important; vertical-align: baseline;"&gt;
&lt;span class="plain" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;sudo apt-get install vim -y&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilizando o editor de texto VIM para abrir um arquivo:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Super Usuário (root)&lt;br /&gt;
# vim [arquivo]&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Usuário comum&lt;br /&gt;
$ vim [arquivo]&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
O editor de texto vim pode ser utilizado em dois modos diferentes:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
modo de inserção de texto&lt;br /&gt;
modo de inserção de comandos&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
### MODO DE INSERÇÃO ###&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para entrar no modo de inserção de texto utilize:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
aperte a tecla “I” ou a tecla “INSERT”&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Através deste modo poderemos inserir texto no arquivo.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para entrar no modo de substituição de texto aperte:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
aperte a tecla “INSERT” 2x&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Através deste modo poderemos substituir o texto dentro do documento, também chamado de modo REPLACE.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
### Modo de comandos: ###&lt;br /&gt;
Salvar o arquivo&lt;/div&gt;
&lt;pre style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: monospace, sans-serif; font-size: 15px; line-height: 22px; outline: 0px; padding: 10px; vertical-align: baseline; white-space: pre-line; word-wrap: break-word;"&gt;:w&lt;/pre&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Sair do arquivo&lt;/div&gt;
&lt;pre style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: monospace, sans-serif; font-size: 15px; line-height: 22px; outline: 0px; padding: 10px; vertical-align: baseline; white-space: pre-line; word-wrap: break-word;"&gt;:q&lt;/pre&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Salvar e sair do arquivo&lt;/div&gt;
&lt;pre style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: monospace, sans-serif; font-size: 15px; line-height: 22px; outline: 0px; padding: 10px; vertical-align: baseline; white-space: pre-line; word-wrap: break-word;"&gt;:wq&lt;/pre&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
ou&lt;/div&gt;
&lt;pre style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: monospace, sans-serif; font-size: 15px; line-height: 22px; outline: 0px; padding: 10px; vertical-align: baseline; white-space: pre-line; word-wrap: break-word;"&gt;:x&lt;/pre&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
OBS: Caso queira forçar a execução de algum comando utilize “!”&lt;br /&gt;
Exemplo:&lt;br /&gt;
:q! -&amp;gt; Forçar a execução de saída do arquivo.&lt;br /&gt;
:w! -&amp;gt; Forçar a execução de salvar o arquivo.&lt;br /&gt;
:wq! ou :x! -&amp;gt; Forçar em salvar e sair ao mesmo tempo do arquivo.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Numerar as linhas do arquivo&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:set number&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Retirar a numeração imposta através do comando anterior&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:set nonumber&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Colocar Texto colorido&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:syntax on&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Retirar Texto Colorido&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:syntax off&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Pular para uma determinada linha&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:Numero_de_linha&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
Pular para a linha 15&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:15&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Ir com o cursor até o final do arquivo&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:$&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Ir com o cursor até o final do arquivo&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:0&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Inserir o conteúdo de um arquivo de texto dentro do arquivo no qual estiver editando&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:r arquivo.txt&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Executar um comando do shell sem sair do arquivo&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:!COMANDO&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:!cat /etc/passwd&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Executar um comando do shell e jogar a saída (RESULTADO) do comando para dentro do arquivo de texto&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:r!COMANDO&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:r!cat /etc/passwd&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Procurar por palavras dentro do arquivo de texto&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;/PALAVRA&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;/futebol&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Irá procurar a palavra futebol dentro de todo o arquivo, aperte a tecla “N” para pular para cada palavra futebol dentro do arquivo.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
OBS: Através deste comando irá procurar do INÍCIO PARA O FINAL.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Procurar por palavras dentro do arquivo de texto&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;?PALAVRA&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;?futebol&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Irá procurar a palavra futebol dentro de todo o arquivo, aperte a tecla “N” para pular para cada palavra futebol dentro do arquivo.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
OBS: Através deste comando irá procurar do FINAL PARA O INÍCIO.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Abrir uma sessão do sheel dentro do editor de texto&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:shell&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para voltar ao arquivo digite: exit&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Alterar palavras na linha atual&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:s/palavra_antiga/palavra_nova/g&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Exemplo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:s/casa/CASA/g&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Irá todas as palavras casa(minúsculas) na linha atual pela palavra CASA(MAIÚSCULAS).&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para alterar todas as palavras em todo o arquivo:&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:%s/palavra_antiga/palavra_nova/g&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para manipular mais de um arquivo de texto ao mesmo tempo&lt;br /&gt;
&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:split [ARQUIVO]&lt;/code&gt;&amp;nbsp;ou&amp;nbsp;&lt;code style="background-color: transparent; border: 0px; font-family: monospace, sans-serif; line-height: 22px; margin: 20px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;:sp [ARQUIVO]&lt;/code&gt;&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Para alternar entre os dois arquivos utilize as teclas:&lt;br /&gt;
Ctrl+W&lt;/div&gt;
&lt;h2 style="-webkit-text-size-adjust: none; background-color: white; border: 0px; color: #1c0915; font-family: Ubuntu; font-size: 18px; line-height: 24px; margin: 0px 0px 20px; outline: 0px; padding: 20px 0px 0px; vertical-align: baseline;"&gt;
Selecionar texto&lt;/h2&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilize a tecla “V” em modo de comando.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Copiar texto:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilize a tecla “Y” em modo de comando.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Colar Texto:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilize a tecla “p” em modo de comando.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Apagar toda uma linha:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilize a tecla “D” 2x em modo de comando.&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Copiar toda uma linha:&lt;/div&gt;
&lt;div style="-webkit-text-size-adjust: none; background-color: white; border: 0px; font-family: Ubuntu; font-size: 15px; line-height: 25px; margin-bottom: 20px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Utilize a tecla “Y” 2x em modo de comando.&lt;/div&gt;
&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Instalando pacotes .tar.gz no ubuntu</title><link>http://profpv.blogspot.com/2012/10/instalando-pacotes-targz-no-ubuntu.html</link><category>comandos linux</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 21 Oct 2012 16:15:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-2995048715142301507</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Muitos usuários recém chegados no mundo Linux deparam-se com esse problema ao desejarem instalar determinado software que não vem por padrão na distribuição usada e ao fazer o download do arquivo, encontram um .tar.gz.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Ao longo desse artigo iremos mostrar como não existe nada de complicado nessa tarefa.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; * Pacotes do tipo .tar.gz ou .tar.bz2 contém os fontes do programa prontos para compilação (transformar os fontes em executáveis).&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; * Sua instalação não depende da distribuição usada.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; * O .tar significa que dentro desse arquivo existem outros e sub-pastas e o .gz ou .bz2 é o tipo de compactação que foi usada na criação do pacote.&amp;nbsp;&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ cd /home/usuário (entra no diretório onde está o pacote)&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ ls (só para você ver o pacote que você baixou)&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ tar -jxvf nome_do_pacote.tar.bz2&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;DICA: Digite as primeiras letras e tecle tab.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Explicação do último comando: para extrair os arquivos de um pacote .tar.bz2 usa-se o comando listado acima, caso fosse um .tar.gz o comando seria bastante semelhante:&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ tar -zxvf nome_do_pacote.tar.gz&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Ou seja, muda apenas em uma letra de "j" para "z" ou vice-versa. Recomendo que você procure saber o que significa cada uma dessas letras, para isso use o comando:&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ man tar&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Agora listando os arquivos...&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;$ ls&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&lt;br /&gt;Vc vai perceber que foi criado um novo diretorio com o nome do pacote ou então um arquivo .bin correto?&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br /&gt;Se for um .bin então é bem rápido, basta fazer:&lt;br /&gt;$ chmod a+x nome_arquivo.bin&lt;br /&gt;$ sudo ./nome_arquivo.bin&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style="background-color: white;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Caso seja um diretorio...&lt;br /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ cd nome_do_diretório_criado&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ ls&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Está vendo um arquivo chamado "configure"? Segue explicação abaixo.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Como o nome já sugere, esse arquivo 'prepara' o Linux para instalar o programa, checando dependências, entre outras coisas. Se encontrar problemas na etapa seguinte, leia o INSTALL ou o README, eles informam tudo que você precisa ter e/ou fazer para ter o programa funcionando perfeitamente.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ ./configure&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;(o ./ significa que queremos executar esse arquivo)&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;OBS: Agora serão verificadas variáveis de ambiente e dependências de bibliotecas. Essa etapa demora um pouco, caso o configure encontre algum erro, anote-o, vá no install e veja se fala algo sobre.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ make&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;$ make install (instala o programa no Linux)&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;Lista rápida de comandos:&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; * tar -zxvf nome-do-arquivo.tar.gz - desempacota o arquivo de extensão .tar.gz;&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;span style="line-height: 16px; text-align: -webkit-auto;"&gt;&amp;nbsp; &amp;nbsp; * tar -jxvf nome-do-arquivo.tar.bz2 - desempacota o arquivo de extensão .tar.bz2.&lt;/span&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;br style="line-height: 16px; text-align: -webkit-auto;" /&gt;&lt;a href="http://easy-ubuntu.blogspot.com/" style="color: #803d0d; line-height: 16px; text-align: -webkit-auto; text-decoration: none;" target="_blank"&gt;http://easy-ubuntu.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Utilizando o LIKE no Doctrine</title><link>http://profpv.blogspot.com/2012/10/utilizando-o-like-no-doctrine.html</link><category>doctrine</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Sun, 21 Oct 2012 09:23:00 -0200</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-7819304836524293424</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlw7dbrO4XWv5p2NC4Z0UMPOXR0uIwFr3z7aFEm-41T2RtHH3pqvNLkGHemHwanNT_RMlrneoVrwrBwj1AF3rD3RuAeQvNGEA6GygTymj07K7bEcX4_8Z8J4zpLg_shFJymc3DPvnRsA/s1600/gatis.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlw7dbrO4XWv5p2NC4Z0UMPOXR0uIwFr3z7aFEm-41T2RtHH3pqvNLkGHemHwanNT_RMlrneoVrwrBwj1AF3rD3RuAeQvNGEA6GygTymj07K7bEcX4_8Z8J4zpLg_shFJymc3DPvnRsA/s200/gatis.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Quer utilizar o LIKE com Doctrine? Essa é simples!&lt;br /&gt;&lt;br /&gt;&lt;b&gt;SIMMMMMMMMMMMMMMMMMM&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Esse não é nem um artigo mas sim uma dica/lembrança para consulta rápida...&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Utilizando QueryBuilder&lt;/span&gt;&lt;br /&gt;
&lt;div class="highlight-php" style="background-color: white; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;div class="highlight" style="background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;pre style="border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; color: white; line-height: 17px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.7em; padding-left: 0.7em; padding-right: 0.7em; padding-top: 0.7em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="cp" style="color: #a0a0a0;"&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class="c1" style="color: #b729d9; font-style: italic;"&gt;// $qb instancia de QueryBuilder&lt;/span&gt;

&lt;span class="nv"&gt;$qb&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;select&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="k" style="color: #ff8400;"&gt;array&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'u'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;))&lt;/span&gt; &lt;span class="c1" style="color: #b729d9; font-style: italic;"&gt;// string 'u' is converted to array internally&lt;/span&gt;
   &lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;from&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'User'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;,&lt;/span&gt; &lt;span class="s1" style="color: #56db3a;"&gt;'u'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;)&lt;/span&gt;
   &lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;where&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$qb&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;expr&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;()&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;orX&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;
       &lt;span class="nv"&gt;$qb&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;expr&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;()&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;eq&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'u.id'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;,&lt;/span&gt; &lt;span class="s1" style="color: #56db3a;"&gt;'?1'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;),&lt;/span&gt;
       &lt;span class="nv"&gt;$qb&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;expr&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;()&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;like&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'u.nickname'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;,&lt;/span&gt; &lt;span class="s1" style="color: #56db3a;"&gt;'?2'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;)&lt;/span&gt;
   &lt;span class="p" style="color: #999999;"&gt;))&lt;/span&gt;
   &lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;orderBy&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'u.surname'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;,&lt;/span&gt; &lt;span class="s1" style="color: #56db3a;"&gt;'ASC'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;));&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;span style="color: #999999; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;E Utilizando DQL&lt;/span&gt;&lt;br /&gt;
&lt;div class="highlight-php" style="background-color: white; font-size: 13px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;div class="highlight" style="background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; margin-bottom: 10px; margin-left: 30px; margin-right: 0px; margin-top: 0px; overflow-x: auto; overflow-y: auto; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;
&lt;pre style="border-left-color: initial; border-left-style: none; border-left-width: initial; border-right-color: initial; border-right-style: none; border-right-width: initial; color: white; line-height: 17px; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.7em; padding-left: 0.7em; padding-right: 0.7em; padding-top: 0.7em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="cp" style="color: #a0a0a0;"&gt;
&amp;lt;?php&lt;/span&gt;
&lt;span class="nv"&gt;$query&lt;/span&gt; &lt;span class="o" style="color: #e0882f;"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$em&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;createQuery&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s2" style="color: #56db3a;"&gt;"SELECT u FROM CmsUser u LEFT JOIN u.articles a WITH a.topic LIKE :foo"&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;);&lt;/span&gt;
&lt;span class="nv"&gt;$query&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;setParameter&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;(&lt;/span&gt;&lt;span class="s1" style="color: #56db3a;"&gt;'foo'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;,&lt;/span&gt; &lt;span class="s1" style="color: #56db3a;"&gt;'%foo%'&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;);&lt;/span&gt;
&lt;span class="nv"&gt;$users&lt;/span&gt; &lt;span class="o" style="color: #e0882f;"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$query&lt;/span&gt;&lt;span class="o" style="color: #e0882f;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="na"&gt;getResult&lt;/span&gt;&lt;span class="p" style="color: #999999;"&gt;();&lt;/span&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;div&gt;
&lt;span class="p" style="color: #999999; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;br /&gt;Bem, é isso rsrs...&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlw7dbrO4XWv5p2NC4Z0UMPOXR0uIwFr3z7aFEm-41T2RtHH3pqvNLkGHemHwanNT_RMlrneoVrwrBwj1AF3rD3RuAeQvNGEA6GygTymj07K7bEcX4_8Z8J4zpLg_shFJymc3DPvnRsA/s72-c/gatis.jpg" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Design Pattern Builder no PHP</title><link>http://profpv.blogspot.com/2012/10/design-pattern-builder-no-php.html</link><category>Design Patterns</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 2 Oct 2012 08:01:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-7846731003217906961</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
Olá amigos tudo bem? Vamos "filosofar" um pouco? Vamos falar sobre o Builder um design pattern que "deriva" do Factory mas tem suas particularidades. &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;b&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s1600/uso.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s1600/uso.gif" /&gt;&lt;/a&gt;&lt;span style="color: #cc0000;"&gt;ANNTISiSS DE INICIAR O ARTIGO VOU DAR UM AVISO AOS NAVEGANTES:&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Não use um design pattern pq simplesmente ele é "elegante" ou então pq vc quer aprender e para isso vai jogar em código de produção para testar.&lt;/span&gt;&lt;br /&gt;
&lt;span style="color: #cc0000;"&gt;&amp;nbsp;&amp;nbsp; Use os patterns quando vc REALMENTE PRECISAR, vou repetir... REALMENTE PRECISAR! Muitas vezes as pessoas tornam algo simples em algo absurdamente complexo por não saber usar ou usar os os patterns em hora errada, se vc tem dúvidas se usa ou não o pattern procure entender melhor o problema e a solução que ele propõe antes de fazer uma tremenda de uma porcaria no código. Ok? :)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;"&gt;
&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnPDVldoYKm-FbvjOkZtmzWt_CMmvAHsB9vasuIiLEWJgCAHq4MSp4qNfGmhFYmpZ6A-rkRJsqr9SqS5X_fEffycx0Tje_-C_-tRvJrvBzamOqYRybDb8iT2qlgWlIgrwh8A4O_MvAcg/s1600/builder1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-size: large;"&gt;DESIGN PATTERN BUILDER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnPDVldoYKm-FbvjOkZtmzWt_CMmvAHsB9vasuIiLEWJgCAHq4MSp4qNfGmhFYmpZ6A-rkRJsqr9SqS5X_fEffycx0Tje_-C_-tRvJrvBzamOqYRybDb8iT2qlgWlIgrwh8A4O_MvAcg/s320/builder1.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
Como o próprio nome já diz ele é um pattern construtor(builder), otimo para quando vc precisa criar objetos completos que atendam uma certa complexidade. No Pattern Builder um temos um diretor e um construtor trabalhando juntos para construir um objeto. O diretor controla a construção e especifica quais partes e variações entram em um objeto. O construtor sabe como montar a especificação do determinado objeto. &lt;i&gt;&lt;span style="color: #45818e;"&gt;&lt;b&gt;Em resumo&lt;/b&gt; a intenção do padrão Construtor(Builder), é separar a construção de um objeto complexo, de modo que o mesmo processo de construção possa criar várias representações diferentes&lt;/span&gt;&lt;/i&gt;.&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;
Veja um exemplo claro de diagrama mostrando a implementação:&lt;/div&gt;
&lt;div class="separator" style="clear: both; font-family: Arial,Helvetica,sans-serif; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn_vCiVkiO8BbDnaoGtnxCpBy_pWoye5PWmutg4O5xkE3bTQJLSrFxUDhdDtykBe0-N-ya-Inu5XH_f_30oy4lDgAgRKi-wxbzVUOUwxx4d4UZVE3Z4yUsrJhI4jUA3e1O-LpbtFlXoQ/s1600/builder-pattern-mold.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn_vCiVkiO8BbDnaoGtnxCpBy_pWoye5PWmutg4O5xkE3bTQJLSrFxUDhdDtykBe0-N-ya-Inu5XH_f_30oy4lDgAgRKi-wxbzVUOUwxx4d4UZVE3Z4yUsrJhI4jUA3e1O-LpbtFlXoQ/s400/builder-pattern-mold.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
O diagrama é a mesma coisa que dizer que:&lt;br /&gt;
A classe &lt;b&gt;Builder&lt;/b&gt; especifica uma interface abstrata para a criação de partes de um objeto &lt;b&gt;Product&lt;/b&gt;.&lt;br /&gt;
O &lt;b&gt;ConcreteBuilder&lt;/b&gt; constrói e reúne peças do produto pela implementação da interface Builder. Ele define e mantém o controle da representação que cria e fornece uma interface para guardar o produto&lt;br /&gt;
A classe &lt;b&gt;Director&lt;/b&gt; constrói o objeto complexo usando a interface do Construtor&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
A &lt;b&gt;Product&lt;/b&gt; representa o objeto complexo que está sendo construído.&lt;br /&gt;
&lt;br /&gt;
Veja um exemplo classico de implementação:&lt;/div&gt;
&lt;div id="code_frame2" style="background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: Arial,Helvetica,sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(&amp;quot;http://pastebin.com/i/code_bg.png&amp;quot;); border-bottom: 1px solid rgb(204, 204, 204); font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;b&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;a href="http://www.blogger.com/blogger.g?blogID=66282523375953478" style="color: #cc0033; text-decoration: none;" title="Toggle text wrapping"&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;BUILDER&lt;/b&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;&amp;lt;?php&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Fabrica&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Construir&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$oVeiculo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$oVeiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Iniciar&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$oVeiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;construirPortas&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$oVeiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;construirMotor&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$oVeiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;construirPneus&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
abstract&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;ConstrutorVeiculo&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; abstract&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Iniciar&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; abstract&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirMotor&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; abstract&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPortas&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; abstract&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPneus&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Carro&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;extends&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;ConstrutorVeiculo&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Iniciar&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Veiculo&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Carro'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPortas&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Portas'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;4&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirMotor&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Motor'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPneus&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Pneus'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;4&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Moto&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;extends&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;ConstrutorVeiculo&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Iniciar&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Veiculo&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Moto'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPortas&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Portas'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;0&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirMotor&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Motor'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;1&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;construirPneus&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Pneus'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;2&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Veiculo&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;private&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sTipo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw4" style="color: #009900; font-weight: bold;"&gt;NULL&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$aPartes&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;array&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;__construct&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sTipo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;sTipo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sTipo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;ObterInformacoes&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;printf&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"--------------------------&lt;span class="es1" style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;printf&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Veículo:&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es6" style="color: #009933; font-weight: bold;"&gt;%s&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es1" style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;sTipo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;printf&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Motor: &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es6" style="color: #009933; font-weight: bold;"&gt;%s&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es1" style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Motor'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;printf&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Portas: &amp;nbsp;&lt;span class="es6" style="color: #009933; font-weight: bold;"&gt;%s&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es1" style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Portas'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;printf&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Pneus: &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es6" style="color: #009933; font-weight: bold;"&gt;%s&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="es1" style="color: #000099; font-weight: bold;"&gt;\n&lt;/span&gt;"&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;aPartes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'Pneus'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Fabrica&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Fabrica&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Carro&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Carro&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Moto&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Moto&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Fabrica&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Construir&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$Carro&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Carro&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;ObterInformacoes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Fabrica&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Construir&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$Moto&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$Moto&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;Veiculo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;ObterInformacoes&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); color: black; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; color: red;"&gt;&lt;div class="de1" style="background-color: white; border-left: 1px solid rgb(204, 204, 204); line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="sy1" style="font-weight: bold;"&gt;?&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;A explicação acima fala por si só não é? Mesmo assim qualquer dúvida... Fui&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s72-c/uso.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total></item><item><title>Paginação com Doctrine e Zend_Framework</title><link>http://profpv.blogspot.com/2012/09/paginacao-com-doctrine-e-zendframework.html</link><category>doctrine</category><category>zend framework</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Mon, 17 Sep 2012 10:00:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-5284622780594002552</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
Olá amigos, hoje vou mostra basicamente como paginar dados usando o Zend Framework e o Doctrine, inicialmente parece algo complexo, mas vcs vão perceber que é simples.&lt;br /&gt;&lt;br /&gt;Se vc ainda não fez uma paginação com o zend framework leia esse meu artigo sobre paginação com o ZF &lt;a href="http://profpv.blogspot.com.br/2012/05/paginacao-com-zend-framework-zend.html"&gt;Paginando com Zend Framework&lt;/a&gt; e depois corra aqui, ou se preferir fique por aqui mesmo.&lt;br /&gt;&lt;br /&gt;Vamos lá, vou mostrar a paginação de forma bem simples pois o grande problema de fazer um artigo sobre paginação do &lt;b style="color: #274e13;"&gt;Zend Framework&lt;/b&gt; com &lt;b style="color: #783f04;"&gt;Doctrine&lt;/b&gt; é que isso varia muito a arquitetura que cada um esta usando, mas nesse caso isso não vai atrapalhar pois vc vai adaptar de acordo com a sua arquitetura.&lt;br /&gt;&lt;br /&gt;Mãos a obra&lt;br /&gt;&lt;br /&gt;No controller....&lt;/div&gt;
&lt;div id="code_frame2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;b&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;exemplo de consulta&lt;/b&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;exemploAction&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$request&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getRequest&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;if&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$request&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getPost&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$params&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$request&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getPost&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$pagina&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;int&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$params&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;[&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'pag'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;]&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$front&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;\Zend_Controller_Front&lt;span class="sy0" style="color: #339933;"&gt;::&lt;/span&gt;&lt;span class="me2" style="color: #004000;"&gt;getInstance&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$em&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$front&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getParam&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'bootstrap'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getResource&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st_h" style="color: blue;"&gt;'entityManager'&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$dql&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$em&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;createQuery&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"select a from Entidade_Pessoa a&lt;span class="es4" style="color: #006699; font-weight: bold;"&gt;&lt;/span&gt;"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$dados&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;\DoctrineExtensions\Paginate\PaginationAdapter&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$dql&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$paginator&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Zend_Paginator&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$dados&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Seta a quantidade de registros por página&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$paginator&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setItemCountPerPage&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;4&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// numero de paginas que serão exibidas&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$paginator&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setPageRange&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="nu0" style="color: #cc66cc;"&gt;15&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co1" style="color: #666666; font-style: italic;"&gt;// Seta a página atual&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$paginator&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setCurrentPageNumber&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$pagina&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;view&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;paginator&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$paginator&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
Veja que simples, usamos uma paginação aparentemente comum&amp;nbsp; do ZF não é? mas passamos para o zend_paginador a variavel $dados que contem a instância da PaginationAdapter que recebe a consulta dql e faz toda a brincadeira... esse cara esta aqui abaixo é uma classe que implementa a &lt;span style="color: #073763;"&gt;\Zend_Paginator_Adapter_Interface&lt;/span&gt; e por isso o &lt;span style="color: #274e13;"&gt;Zend_Paginator&lt;/span&gt; sabe trabalhar com o objeto pois os métodos que ele usa são do nome da interface. &lt;br /&gt;Lindo não é? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s1600/uso.gif" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s1600/uso.gif" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Veja a classe:&lt;br /&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;b&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;ADAPTER DO DOCTRINE&lt;/b&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* DoctrineExtensions Paginate&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* LICENSE&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* This source file is subject to the new BSD license that is bundled&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* with this package in the file LICENSE. This license can also be viewed&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* at http://hobodave.com/license.txt&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @category &amp;nbsp; &amp;nbsp;DoctrineExtensions&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @package &amp;nbsp; &amp;nbsp; DoctrineExtensions\Paginate&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @author &amp;nbsp; &amp;nbsp; &amp;nbsp;David Abdemoulaie &amp;lt;dave@hobodave.com&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @copyright &amp;nbsp; Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @license &amp;nbsp; &amp;nbsp; http://hobodave.com/license.txt New BSD License&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;namespace&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;DoctrineExtensions\Paginate&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;use&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Doctrine\ORM\Query&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* Implements the Zend_Paginator_Adapter_Interface for use with Zend_Paginator&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* Allows pagination of Doctrine\ORM\Query objects and DQL strings&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @category &amp;nbsp; &amp;nbsp;DoctrineExtensions&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @package &amp;nbsp; &amp;nbsp; DoctrineExtensions\Paginate&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @author &amp;nbsp; &amp;nbsp; &amp;nbsp;David Abdemoulaie &amp;lt;dave@hobodave.com&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @copyright &amp;nbsp; Copyright (c) 2010 David Abdemoulaie (http://hobodave.com/)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;* @license &amp;nbsp; &amp;nbsp; http://hobodave.com/license.txt New BSD License&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;PaginationAdapter implements \Zend_Paginator_Adapter_Interface&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* The SELECT query to paginate&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @var Query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$query&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw4" style="color: #009900; font-weight: bold;"&gt;null&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Total item count&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @var integer&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw4" style="color: #009900; font-weight: bold;"&gt;null&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Use Array Result&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @var boolean&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$arrayResult&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw4" style="color: #009900; font-weight: bold;"&gt;false&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Constructor&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param Query $query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param string $ns Namespace to prevent named parameter conflicts&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;__construct&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;Query&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$query&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Set use array result flag&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param boolean $flag True to use array result&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;useArrayResult&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$flag&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw4" style="color: #009900; font-weight: bold;"&gt;true&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;arrayResult&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$flag&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Sets the total row count for this paginator&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Can be either an integer, or a Doctrine\ORM\Query object&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* which returns the count&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param Query|integer $rowCount&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return void&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;setRowCount&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;if&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;instanceof Query&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;rowCount&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getSingleScalarResult&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;else&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;if&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;is_integer&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;rowCount&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$rowCount&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;else&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;throw&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;\InvalidArgumentException&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Invalid row count"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Sets the namespace to be used for named parameters&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Parameters will be in the format 'namespace_1' ... 'namespace_N'&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param string $ns&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return void&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author David Abdemoulaie&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;setNamespace&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$ns&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;namespace&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$ns&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* Gets the current page of items&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param string $offset&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param string $itemCountPerPage&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return void&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @author David Abdemoulaie&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;getItems&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$offset&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$itemCountPerPage&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setFirstResult&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$offset&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setMaxResults&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$itemCountPerPage&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$entities&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;getResult&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$entities&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @param Query $query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return int&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;count&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;if&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;is_null&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;rowCount&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setRowCount&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;createCountQuery&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;rowCount&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return Query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;createCountQuery&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Paginate&lt;span class="sy0" style="color: #339933;"&gt;::&lt;/span&gt;&lt;span class="me2" style="color: #004000;"&gt;createCountQuery&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return Query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;createLimitSubquery&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$offset&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$itemCountPerPage&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Paginate&lt;span class="sy0" style="color: #339933;"&gt;::&lt;/span&gt;&lt;span class="me2" style="color: #004000;"&gt;createLimitSubQuery&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$offset&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$itemCountPerPage&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;/**&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;* @return Query&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="co4" style="color: #009933; font-style: italic;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;protected&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;createWhereInQuery&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$ids&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Paginate&lt;span class="sy0" style="color: #339933;"&gt;::&lt;/span&gt;&lt;span class="me2" style="color: #004000;"&gt;createWhereInQuery&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;query&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$ids&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;,&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;namespace&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
Veja que nós implementamos os métodos da interface e montamos o resultado então na view é só pegar como de costume o "$this-&amp;gt;paginator" iterar ele e mandar bala!&lt;br /&gt;
&lt;br class="Apple-interchange-newline" /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjROrNArFzOxjV4iyI43ymJPbCiQVRXFeBQJAvmOf8fVsZlVeYMzXFHG-vXlaTFjt-JoH1qHNoYABiJU7XOfoVo-Du4XiWknhgl_d9gWI1Ipwg1JSxFd8VZ4tGMP3vyp76oK2hd-8bKdA/s1600/homer.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjROrNArFzOxjV4iyI43ymJPbCiQVRXFeBQJAvmOf8fVsZlVeYMzXFHG-vXlaTFjt-JoH1qHNoYABiJU7XOfoVo-Du4XiWknhgl_d9gWI1Ipwg1JSxFd8VZ4tGMP3vyp76oK2hd-8bKdA/s1600/homer.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;br /&gt;Dúvidas? Me avisem pois fiz esse post meio correndo... rsrs&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlfZJbh0rvYpxTYPLMXLR5rGLBJ6hIh_aNk8K9CSkHXGByjYmojWTx5MZ7eKQFV7zJfdVzPldCjmbV_KgtKH43itpJeEfUFCNn-y4EBq0Ugw9F9BkzlWjvSnUX4bejkHNYD9pPgddJTw/s72-c/uso.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total></item><item><title>Contando objeto no PHP</title><link>http://profpv.blogspot.com/2012/09/contando-objeto-no-php.html</link><category>php</category><category>PHP 5.3</category><author>noreply@blogger.com (Anonymous)</author><pubDate>Tue, 11 Sep 2012 07:23:00 -0300</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-66282523375953478.post-5371709506661431924</guid><description>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
... Eis que surge a dúvida, como eu conto os atributos de um objeto? Será que count/sizeof funciona? Vamos testar?&lt;/div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIjFRV-n0NvpQcUKhFY-5GmzQb_b97fXQFJB6vk9IC9nJzg4fVPoQzm_sKPHXJSeOEkPdgMqfOLv4hd4aHKFXisBaoEk6htCCV6EPFfWoLgIsdkwIzqnm13_mRoO4V0AcRBc0E6nqaGw/s1600/studyyy.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIjFRV-n0NvpQcUKhFY-5GmzQb_b97fXQFJB6vk9IC9nJzg4fVPoQzm_sKPHXJSeOEkPdgMqfOLv4hd4aHKFXisBaoEk6htCCV6EPFfWoLgIsdkwIzqnm13_mRoO4V0AcRBc0E6nqaGw/s320/studyyy.gif" width="275" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="font-family: Arial,Helvetica,sans-serif;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Criando uma classe pessoa com os atributos nome, sexo e idade:&lt;/span&gt;&lt;br /&gt;
&lt;div id="code_frame2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;CLASSE PESSOA&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;class&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Pessoa&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;private&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;private&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sexo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;private&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$idade&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;getNome&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;setNome&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;nome&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$nome&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;getSexo&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;sexo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;setSexo&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sexo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;sexo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$sexo&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;getIdade&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw1" style="color: #b1b100;"&gt;return&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;idade&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;public&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;function&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;setIdade&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$idade&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$this&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;idade&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$idade&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="br0" style="color: #009900;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
Vamos criar uma instância dessa classe e popular ela, depois utilizamos o count na busca de um resultado mágico ok?&lt;br /&gt;
&lt;div id="code_frame2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;tentando contar atributos de um objeto&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Pessoa&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setNome&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Paulo Victor"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setSexo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"M"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setIdade&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"23"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;echo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
E ai o que ele vai retornar? Nesse caso retorna 1 pois o objeto é válido e ponto. &lt;span style="font-family: Arial,Helvetica,sans-serif; font-size: xx-small;"&gt;&lt;span style="color: #073763;"&gt;(&lt;/span&gt;&lt;span style="background-color: #f0f0f0; color: #073763; display: inline ! important; float: none; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;If you try to do a sizeof or count with an object, it will always return 1 if the object is not null)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;br style="color: #073763;" /&gt;&lt;span style="color: #073763;"&gt;OBS: sizeof é um atalho para a função count&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmTwUrk8N2cGpPC9OUvdAhkC6YPbJ9GJUA-_dq2jwbOzNDHo-mQ7NH4KJTHjRm8TDVYHExQzGUg-pSSkkKnHEI8F9mmewAtZW9Kd99Fkw6bbuF8R3LYtPG1zrgCTxEfg5lsMP-HexYQ/s1600/comofunciona.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="128" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmTwUrk8N2cGpPC9OUvdAhkC6YPbJ9GJUA-_dq2jwbOzNDHo-mQ7NH4KJTHjRm8TDVYHExQzGUg-pSSkkKnHEI8F9mmewAtZW9Kd99Fkw6bbuF8R3LYtPG1zrgCTxEfg5lsMP-HexYQ/s200/comofunciona.jpg" width="200" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style="font-size: large;"&gt;I ai ferro, será que tem algo específico para contar um objeto? &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
..... Pesquisando e pesquisando descobrimos que a melhor solução nesse caso é fazer um cast do objeto para array, juro, dentro do count isso é lindo, assim como diz na documentação do php veja:&lt;br /&gt;
&lt;span style="background-color: #f0f0f0; color: black; display: inline ! important; float: none; font-family: Consolas,'Andale Mono WT','Andale Mono','Lucida Console',Monaco,'Courier New',Courier,monospace; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;b&gt;You need to type cast the object as an array for it to count correctly.&lt;/b&gt;&lt;span class="Apple-converted-space"&gt; &lt;span style="color: #073763; font-size: xx-small;"&gt;(fonte: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #073763; font-size: xx-small;"&gt;&lt;a href="http://www.php.net/manual/en/function.count.php"&gt;http://www.php.net/manual/en/function.count.php&lt;/a&gt;)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Então ficaria assim:&lt;br /&gt;
&lt;br /&gt;
&lt;div id="code_frame2" style="-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 1px solid rgb(238, 238, 238); color: #181818; font-family: 'segoe ui', 'trebuchet MS', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; margin: 0px 0px 10px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;
&lt;div id="code_frame" style="background-color: #f8f8f8; border: 1px solid rgb(221, 221, 221); font-size: 12px; line-height: 21px; overflow: auto; padding: 0px;"&gt;
&lt;div id="code_buttons" style="background-image: url(http://pastebin.com/i/code_bg.png); background-position: initial initial; background-repeat: initial initial; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; font-size: 0.9em; height: 30px; line-height: 21px; padding: 0px 8px; text-align: left; text-transform: uppercase;"&gt;
&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&lt;/span&gt;&lt;span style="font-size: small;"&gt;&lt;b&gt;contaNDO atributos de um objeto&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="php" style="color: #acacac; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px;"&gt;
&lt;ol style="margin: 0px; padding: 0px 0px 0px 48px;"&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;=&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw2" style="color: black; font-weight: bold;"&gt;new&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;Pessoa&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setNome&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"Paulo Victor"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setSexo&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"M"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="re0" style="color: #000088;"&gt;$pv&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="me1" style="color: #004000;"&gt;setIdade&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="st0" style="color: blue;"&gt;"23"&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li1" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de1" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class="li2" style="background-color: white; background-position: initial initial; background-repeat: initial initial;"&gt;&lt;div class="de2" style="background-color: white; background-position: initial initial; background-repeat: initial initial; border-left-color: rgb(204, 204, 204); border-left-style: solid; border-left-width: 1px; color: black; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace, serif; line-height: 21px; margin: 0px 0px 0px -7px; padding: 0px 5px; position: relative; vertical-align: top;"&gt;
&lt;span class="kw1" style="color: #b1b100;"&gt;echo&lt;/span&gt;&lt;span class="Apple-converted-space"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="kw3" style="color: #990000;"&gt;sizeof&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;(&lt;/span&gt;&lt;span class="re0" style="color: #000088;"&gt;&lt;span style="color: #bf9000;"&gt;(array)&lt;/span&gt; $pv&lt;/span&gt;&lt;span class="br0" style="color: #009900;"&gt;)&lt;/span&gt;&lt;span class="sy0" style="color: #339933;"&gt;; &lt;span style="color: #999999;"&gt;// 3&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Pronto, a saída disso será 3, o número de atributos.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Que simples não é? Igual a epoca em que jogavamos &lt;span style="font-size: large;"&gt;&lt;b style="color: #073763;"&gt;Alex kidd&lt;/b&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #0b5394;"&gt;(foto, graaande alex kidd)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #073763; font-size: xx-small;"&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: #0b5394;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSuKUKswn7ThtYukOq2Q8q9Lr1A5wR76KDDy6s-8hYylW8YNP7vNk4GhE6zC2AzRY5Uh1FJziBKlaiLfmpuVXadxk7_uvYrMZrrhnffCwUiqq9q6u3NgaobvDFaF_B7fYeJaJDjftwRw/s1600/Alex-Kidd.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSuKUKswn7ThtYukOq2Q8q9Lr1A5wR76KDDy6s-8hYylW8YNP7vNk4GhE6zC2AzRY5Uh1FJziBKlaiLfmpuVXadxk7_uvYrMZrrhnffCwUiqq9q6u3NgaobvDFaF_B7fYeJaJDjftwRw/s320/Alex-Kidd.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Pois bem, ai talvez vc me faça uma pergunta(&lt;/span&gt;&lt;i style="background-color: white; color: black; font-family: Arial,Helvetica,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 16px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;diga&lt;/i&gt;&lt;span style="background-color: white; color: #222222; display: inline ! important; float: none; font-family: Arial,Helvetica,sans-serif; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;-&lt;/span&gt;&lt;i style="background-color: white; color: black; font-family: Arial,Helvetica,sans-serif; font-size: small; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 16px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;se de passagem, muito inconveniente kkkk&lt;/i&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;) se não existem forma de tornar a contagem mais lógica de objetos, e ai amiguinho eu te dou uma resposta de alto nível que é; &lt;b&gt;O PHP se preparou para tudo&lt;/b&gt;(quase tudo) e para esses casos existe a interface &lt;/span&gt;&lt;a href="http://br.php.net/manual/en/class.arrayaccess.php" style="font-family: Arial,Helvetica,sans-serif;"&gt;ArrayAccess&lt;/a&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt; que permite vc manipular objetos como array e array o PHP já tem 321402342034923049203492304 funções.&lt;br /&gt;&amp;nbsp;Mas, esse é um assunto para o próximo artigo(que eu juro q vou falar sobre).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Agora se vc quer contar exatamente um atributo e não quer ter muito trabalho eu idico dar uma lida na interface Countable da SPL(&lt;/span&gt;&lt;span style="background-color: white; color: #333333; display: inline ! important; float: none; font-family: 'Segoe UI',Calibri,'Myriad Pro',Myriad,'Trebuchet MS',Helvetica,Arial,sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;uma biblioteca com diversas classe e interfaces para PHP, que vão desde estruturas de dados, implementações de Design patterns, Iterators, Exceptions e funções diversas) &lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;aqui no blog do Thiago Rigo tem uma boa explicação sobre ela&lt;/span&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt; &lt;/span&gt;&lt;a href="http://thiagorigo.com/blog/2010/07/spl-countable/"&gt;http://thiagorigo.com/blog/2010/07/spl-countable/&lt;/a&gt;&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;Então é isso. Valeu!&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style="font-family: Arial,Helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;&lt;/div&gt;
</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIjFRV-n0NvpQcUKhFY-5GmzQb_b97fXQFJB6vk9IC9nJzg4fVPoQzm_sKPHXJSeOEkPdgMqfOLv4hd4aHKFXisBaoEk6htCCV6EPFfWoLgIsdkwIzqnm13_mRoO4V0AcRBc0E6nqaGw/s72-c/studyyy.gif" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total></item></channel></rss>