title: Interface with not-required methods
body: <p>Is there a way to indicate optional method in the interface (so that the contract only indicated the number / type of arguments to be given)?</p>
  
  <p>Please give maybe a little more understanding and insight into the problem, and indicate a solution? See for instance this discussion: <a href="https://stackoverflow.com/questions/10572643/optional-methods-in-java-interface">Optional Methods in Java Interface</a></p>
  
  <p>In the app I'm using Listeners connected to the Persistence (Doctrine). So I'm using some of these methods:</p>
  
  <pre><code>prePersist()
  preUpdate()
  postPersist()
  postUpdate()
  </code></pre>
  
  <p>etc.</p>
  
  <p>Now, while refactoring, since there are too many Entities (objects to be persisted) I decided to split the parts of these methods into separate classes.</p>
  
  <p>However not all of them need all pre-... and post-... methods. I need to make sure they are given appropriate number and type of arguments. How do you do that in PHP?</p>