PHP Classes

Minor criticism

Recommend this page to a friend!

      PEAR WorkBook Helper  >  All threads  >  Minor criticism  >  (Un) Subscribe thread alerts  
Subject:Minor criticism
Summary:Too much classes and interfaces for such task
Messages:2
Author:Stanislav Shramko
Date:2011-01-14 20:54:34
Update:2011-01-15 23:34:20
 

  1. Minor criticism   Reply   Report abuse  
Picture of Stanislav Shramko Stanislav Shramko - 2011-01-14 20:54:34
> public function setWriterCallback($writerCallback)
You can use WriterCallback to be sure that only WriterCallback instances can be set:
public function setWriterCallback(WriterCallback $writerCallback)

  2. Re: Minor criticism   Reply   Report abuse  
Picture of fridayana baabullah fridayana baabullah - 2011-01-15 23:34:20 - In reply to message 1 from Stanislav Shramko
Yes you're right Shramko :). The file has been modified to use type hint.
Thank you yaaa :)

 
For more information send a message to info at phpclasses dot org.