title: Does the order of PHP public functions in a class affect its execution?
body: <p>I've been following this <a href="http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07" rel="nofollow noreferrer">Symfony</a> tutorial. In some sections it just tells me to add a <code>public function</code> inside a <code>class</code> but it doesn't say if I should add it at the beginning or at the end of the class.</p>
  
  <p>For instance:</p>
  
  <pre><code>/**
   * JobeetCategory
   *
   * This class has been auto-generated by the Doctrine ORM Framework
   *
   * @package    jobeet
   * @subpackage model
   * @author     Your name here
   * @version    SVN: $Id: Builder.php 7490 2010-03-29 19:53:27Z jwage $
   */
  class JobeetCategory extends BaseJobeetCategory
  {
    public function countActiveJobs()
    {
      $q = Doctrine_Query::create()
        -&gt;from('JobeetJob j')
        -&gt;where('j.category_id = ?', $this-&gt;getId());
  
      return Doctrine_Core::getTable('JobeetJob')-&gt;countActiveJobs($q);
    }
  
    public function getSlug()
    {
      return Jobeet::slugify($this-&gt;getName());
    }
  
    public function getActiveJobs($max = 10)
    {
      $q = Doctrine_Query::create()
        -&gt;from('JobeetJob j')
        -&gt;where('j.category_id = ?', $this-&gt;getId())
        -&gt;limit($max);
  
      return Doctrine_Core::getTable('JobeetJob')-&gt;getActiveJobs($q);
    }
  }
  </code></pre>
  
  <p>The <code>getActiveJObs</code> public function was the first shown in the tutorial and <code>countActiveJobs</code> is the last function I added according to the tutorial.</p>
  
  <p>Does the order of the public functions inside a class matter?</p>