ķ
Ķ˙`c           @   s6   d  d l  Z  d  d l m Z d e f d     YZ d S(   i˙˙˙˙N(   t   Servicet
   PHPServicec           B   s   e  Z d    Z RS(   c         C   sĒ   d j  | |  } t j j | |  } g  } t | d  C } | j   }	 x- |	 D]% }
 |  j |
 |  } | j |  qR WWd QXt | d   } | j |  Wd QXd S(   s  [summary]

    Args:
        output_path (string): path where the entity will be saved
        entity_name (string): name of the entity that will be created
        path_template (string): full path of the example file that will be used as template to the new file
    s   {}{}.phpt   rNt   w(	   t   formatt   ost   patht   joint   opent	   readlinest
   _fill_linet   appendt
   writelines(   t   selft   output_patht   entity_namet   path_templatet   type_servicet   output_namet   full_output_patht   formated_textt   file_streamt   textt   linet   new_linet   file2_stream(    (    sZ   /home/developer/workfolder/fmBackend/src/Teknisa/FM/Util/entityGenerator-PHP/phpService.pyt
   create_php   s    (   t   __name__t
   __module__R   (    (    (    sZ   /home/developer/workfolder/fmBackend/src/Teknisa/FM/Util/entityGenerator-PHP/phpService.pyR      s   (   R   t   serviceR    R   (    (    (    sZ   /home/developer/workfolder/fmBackend/src/Teknisa/FM/Util/entityGenerator-PHP/phpService.pyt   <module>   s   