Skip to content
Snippets Groups Projects
Select Git revision
  • 6c62fab46ff0bf208639ccd74c774c8ef6fd159f
  • master default protected
  • release_3.0.0
  • test
  • feature_pre_sql
  • develop
  • 3.0.1
  • 3.0.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.3.7
  • 1.3.6
  • 1.3.5
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.6
  • 1.2.5
  • 1.2.4
  • 1.2.3
  • 1.2.2
  • 1.2.1
26 results

zf-mvc-auth-oauth2-override.global.php

Blame
  • 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>
    }