Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • b20
  • ll-paiement-mission
  • indicateur_v21
  • ll-mission-plafond
  • Modularisation_Contrat_FJ
  • cherry-pick-2df89819
  • alc-module-piece-jointe
  • alc-recherche-intervenant
  • alc-tags
  • b19
  • b17
  • b18
  • b15
  • b16
  • b14
  • mangue
  • 20.5
  • 20.4
  • 20.3
  • 20.2
  • 20.1
  • 20.0
  • 20.0-beta
  • 19.7
  • 19.6
  • 19.5
  • 19.4
  • 19.3
  • 19.2
  • 19.1
  • 19.0
  • 19.0-beta
  • 18.2
  • 18.1
  • 18.0
  • 18.0-beta3
37 results

bootstrap.nuspec

Blame
  • Forked from open-source / OSE
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    FormAwareTrait.php 923 B
    <?php
    
    namespace <namespace>;
    
    use <targetFullClass>;
    
    /**
     * Description of <class>
     *
     * @author UnicaenCode
     */
    trait <class>
    {
        /**
         * @var <targetClass>
         */
        protected $<variable>;
    
    
    
        /**
         * @param <targetClass> $<variable>
         *
         * @return self
         */
        public function set<method>( <targetClass> $<variable> )
        {
            $this-><variable> = $<variable>;
    
            return $this;
        }
    <if useGetter notrim>
    
    
        /**
         * Retourne un nouveau formulaire ou fieldset systématiquement, sauf si ce dernier a été fourni manuellement.
         *
         * @return <targetClass>
         * @throws RuntimeException
         */
        public function get<method>() : <targetClass>
        {
            if ($this-><variable>){
                return $this-><variable>;
            }else{
                return \Application::$container->get('FormElementManager')->get(<targetClass>::class);
            }
        }
    <endif useGetter>
    }