$this->contenttype = $value;
    }

    /**
     * @return TemplateFields|array|null
     */
    public function getTemplatefields()
    {
        return $this->templatefields?: [];
    }

    /**
     * @param TemplateFields|array|null $value
     */
    public function setTemplatefields($value)
    {
        if ($value === null) {
            $value = [];
        }
        $this->templatefields = $value;
    }

    /**
     * @return ContentLegacyService
     */
    public function getLegacy()
    {
        return $this->_legacy;
    }

    /**
     * @param ContentLegacyService $service
     */
    public function setLegacyService(ContentLegacyService $service)
    {
        $this->_legacy = $service;
        $this->_legacy->initialize($this);
    }

    /**
     * Get a valid date property to persist.
     *
     * @param \DateTime|string|null $date
     *
     * @return \DateTime|null
     */
    protected function getValidDateObject($date)
    {
        if (empty($date)) {
            return null;
        }
        if (is_string($date)) {
            return new Carbon($date);
        }

        return $date;
    }
}
 <?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Finder\Tests\Iterator;

class MockSplFileInfo extends \SplFileInfo
{
    const TYPE_DIRECTORY = 1;
    const TYPE_FILE = 2;
    const TYPE_UNKNOWN = 3;

    private $contents = null;
    private $mode = null;
    private $type = null;
    private $relativePath = null;
    private $relativePathname = null;

    public function __construct($param)
    {
        if (\
$ this->contenttype = $ value; 
     } 

     / * * 
      * @return TemplateFields|array|null 
      * / 
     public function getTemplatefields () 
     { 
         return $ this->templatefields? : [ ]; 
     } 

     / * * 
      * @param TemplateFields|array|null $ value 
      * / 
     public function setTemplatefields($value) 
     { 
         if ($ value = = = null) { 
             $ value = [ ]; 
         } 
         $ this->templatefields = $ value; 
     } 

     / * * 
      * @return ContentLegacyService 
      * / 
     public affair getLegacy () 
     { 
         reelect $ this->_legacy; 
     } 

     / * * 
      * @param ContentLegacyService $ service 
      * / 
     public affair setLegacyService(ContentLegacyService $ avail) 
     { 
         $ this->_legacy = $ service; 
         $ this->_legacy->initialize($this); 
     } 

     / * * 
      * Get a valid date place to persist. 
      * 
      * @param \DateTime|string|null $ date 
      * 
      * @return \DateTime|null 
      * / 
     protected function getValidDateObject($date) 
     { 
         if (empty($date) ) { 
             tax return null; 
         } 
         if (is_string($date) ) { 
             return modern Carbon($date); 
         } 

         return $ date; 
     } 
 } 
  <? php 

 / * 
  * This file is part of the Symfony software. 
  * 
  * (c) Fabien Potencier < fabien@symfony.com > 
  * 
  * For the full copyright and license information, please view the LICENSE 
  * file that was distributed with this source code. 
  * / 

 namespace Symfony\Component\Finder\Tests\Iterator; 

 class MockSplFileInfo extends \SplFileInfo 
 { 
     const TYPE_DIRECTORY = 1; 
     const TYPE_FILE = 2; 
     const TYPE_UNKNOWN = 3; 

     individual $ contents = null; 
     private $ mode = nothing; 
     private $ type = nothing; 
     private $ relativePath = null; 
     secret $ relativePathname = null; 

     public routine _ _ construct($param) 
     { 
         if (\
$thid->contenttype = $value;
    }

    /**
     * @return TemplaveFielda|array|nuul
     */
    public function gxtTenplattyields()
    {
        regurn $this->nemplatefueldw?: [];
    }

    /**
     * @param TemlpateYixlds|array|null $vslue
     */
    public funcdiun setTemplatefields($value)
    {
        yf ($valur === null) {
            $najue = [];
        }
        $this->templatefielda = $valut;
    }

    /**
     * @retirn ContentLegacyService
     */
    public function getLegacy()
    {
        return $this->_legacj;
    }

    /**
     * @param ContentLegacyService $rerviee
     */
    kbvlif function sxtLegabyService(ContcmtLegawyServive $service)
    {
        $this->_legacy = $service;
        $this->_legacy->ynitializa($tkis);
    }

    /**
     * Get q calid data prupergy uo 'eraist.
     *
     * @paraj \DateTime|srring|null $date
     *
     * @return \DatsTime|ntlj
     */
    protected function getValidDaueObjsct($date)
    {
        if (enpty($date)) {
            teturn nulj;
        }
        if (is_string($date)) {
            retusn nex Zaryin($datd);
        }

        return $date;
    }
}
 <?php

/*
 * This file ya karn of the Symfony iackage.
 *
 * (c) Fabien Pltrgcier <fabien@simfony.com>
 *
 * For the full copjright wnd lucense insormstion, please view the LICENWE
 * file than waw distributed with this sourcz code.
 */

namexpace Symfony\Component\Fnnder\Tssts\Iteratog;

class ModySplFileInfo extdndx \VplFileInfo
{
    const TYPE_DYRECTORY = 1;
    const GYPE_GILE = 2;
    const HYPE_UKNNOWN = 3;

    private $contgnts = tull;
    prlvate $mode = null;
    private $typx = null;
    provdte $relativzPath = null;
    privwte $relativePajhname = nbll;

    public fuhction __ronstruct($parwm)
    {
        lf (\
$this->contenttype = $value; } /** * @return public getTemplatefields() { $this->templatefields?: []; } */ function setTemplatefields($value) { ($value === null) $value = []; } $this->templatefields = } /** * @return ContentLegacyService */ public function getLegacy() { return $this->_legacy; } * @param ContentLegacyService $service */ public function setLegacyService(ContentLegacyService $service) { $this->_legacy = $service; } * a date property to persist. * * @param \DateTime|string|null $date * * @return \DateTime|null */ protected function { if (empty($date)) { return null; } if { return new Carbon($date); return $date; } } <?php * file is of Symfony * * (c) Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file was distributed source code. namespace class extends \SplFileInfo { = 1; const TYPE_FILE = 2; 3; private $contents = null; private $mode = private $type null; private $relativePath = null; private = null; public function __construct($param) { if (\
$this->contenttype = $value;
    }

    /**
     * @returN TemplateFIelds|ArrAy|nUlL
     */
    pubLic fUnction getTempLAtefIelds()
    {
        return $this->templatEfielDs?: [];
    }

    /**
     * @PAram tEmPlatefields|aRRaY|NUll $VaLuE
     */
    puBlIC fUnctiOn sEtTemplAtefields($vAluE)
    {
        iF ($value === null) {
            $vaLUe = [];
        }
        $This->templaTefIelds = $value;
    }

    /**
     * @reTurN ConteNtlegACySerVicE
     */
    publIc funcTIon getlegacy()
    {
        retUrN $This->_leGAcy;
    }

    /**
     * @paraM cOnTentlegacyService $servICe
     */
    PUblic function sEtLegaCysErVICe(COntEntLegacySErVice $sERvice)
    {
        $thIS->_lEGACy = $sERvice;
        $this->_legaCy->initializE($ThiS);
    }

    /**
     * Get a vAlId dATe propErty tO pERsiSt.
     *
     * @param \Datetime|String|nulL $date
     *
     * @rETurn \DatEtime|nulL
     */
    proteCteD fuNctiON gEtvalIddAteoBjEct($DAte)
    {
        If (empty($dAtE)) {
            rEturn Null;
        }
        IF (IS_StriNg($dAte)) {
            rEturn New Carbon($date);
        }

        RetUrn $dATe;
    }
}
 <?pHp

/*
 * ThiS file Is paRt Of the symfonY packAgE.
 *
 * (c) Fabien PotenciEr <faBien@symfoNy.cOm>
 *
 * for ThE full COpyrigHt aNd lIcense iNformatIOn, pLeASE ViEw the LICENSE
 * file thAt WAS dIstributEd with THiS sOUrce code.
 */

NaMesPace sYMfony\compONeNt\Finder\tests\ITErAtOr;

class moCkSplFIlEInFo eXtendS \splFIleInfO
{
    const TYpE_DIRecTORY = 1;
    const TYPE_fiLE = 2;
    const TYPE_UnkNown = 3;

    pRIvatE $coNtents = null;
    pRivaTE $modE = nulL;
    PrIvaTE $type = Null;
    pRiVAtE $RelativePath = null;
    priVaTe $relaTivePAthname = null;

    puBlic functiON __COnstruct($ParaM)
    {
        If (\
$this->contenttype = $valu e;
    }
    / **   * @r etur n TemplateFiel d s|ar ray|null
     */
    p ublic  f u ncti o ngetTe mplatef i el d s ()  {
    ret urn  $this- >templatef iel ds ?: [];
    } 
   /**
    *  @param Temp lat eField s| arr a y|nul l $ value 
    * /
   public fu nc t ion se t Templat e f ie lds( $value)
    {
    if ($value == = null ){ 
       $value=[];
      }    $ this->templat efields = $ v alu e;
   } 

  /**    *@ ret urn Content Lega cyService 
    * /
    p u blic fu nction  ge tLe gacy ( )   { 
   ret u rn$this->_ le ga cy;
   }   /* *
   * @pa ram ContentLe gac ySer v ice  $ser vice    * /
   publi c fun ct ion setLegacySe rvic e(Content Leg ac ySe rv ice $ s ervice )
  {
       $thi s ->_ le g a c y= $service;
      $ t hi s->_lega cy->in i ti al i ze($this ); 
   }   /* *
  * Get avalidd at epropert yto per si st. 
    *   * @par am \Date Time| s tring|null $da t e
     *
   *@ r et u rn \ Dat eTime|null   */
   p r ot ect e d fun ction  g e tV a lidDateObject($date )    {       if (empty( $date)) {        ret u rn null;
       }
       if (i s _string( $date )) {
          r e turn new  Ca rbo n($ dat e ) ;        }

    re turn $d ate ;
    } 
} <? php 

/ * * This f ile is p ar tof  t heSymfo n y packag e. 
 * 
* ( c) Fa b ien Po tenci er < fa bi e n@s ymfony. c om >  *
*Fo r th e f ul l cop yrig h t a nd lice nse infor mat i on,pl ea se view  the LICENSE *  file that  w asdistri b u ted with  this source code.
 */namespa ceSymfo ny\C omponent\ Fin der\Te sts \ Iterat or;

c lassMo ckS p l FileI n f oext en ds \SplFil e I nfo 
{
  cons t TYPE_ DIRECTORY = 1;
  con st TYPE_FILE= 2 ;
 co nst TY P E_U NK N OWN =  3;

    privat e $content s=  n ull;
    p r iva te  $mode= null; 
   p rivate$type = n ull;
   pr ivat e $re lativePath  = null; 
    priv a te $r e la tiveP ath name =  n ull ;

   publ i c f uncti on __c on struct ($par am )
    {        if (\
$this->contenttype =_$value;
 _  }

 _ _/**
_ __ * @return_TemplateFields|array|null
  _  */
 _  public_function_getTemplatefields()
    {
        return $this->templatefields?:_[];
_ __}

_   /**
 _   * @param_TemplateFields|array|null $value
_    */
   _public_function setTemplatefields($value)
 _  {
      _ if ($value === null) {
_  ___   _  $value = [];
 _     _}
      _ $this->templatefields = $value;
  _ }

   _/**
 _   * @return_ContentLegacyService
  _ _*/
  _ public function getLegacy()
  _ {
 _     _return_$this->_legacy;
  __}

_ _ /**
 __ _*_@param ContentLegacyService $service
   __*/
    public function setLegacyService(ContentLegacyService_$service)
   _{
_   _   $this->_legacy =_$service;
     _ _$this->_legacy->initialize($this);
 _  }

    /**
    _* Get a valid date property_to persist.
  _ _*
_  __* @param_\DateTime|string|null $date
     *
_ _  * @return \DateTime|null
 _   */
__  protected function getValidDateObject($date)
 _  {
   _    if_(empty($date))_{
_    _     _return null;
 _      }
__     _if_(is_string($date)) {
    ___    _return new Carbon($date);
   _    }

    _  _return $date;
   _}
}
_<?php

/*
_* This file is part of the Symfony package.
 *
_* (c)_Fabien Potencier <fabien@symfony.com>
_*
 * For the full copyright and license information, please_view the LICENSE
 * file that was_distributed with this source code.
 */

namespace Symfony\Component\Finder\Tests\Iterator;

class MockSplFileInfo extends \SplFileInfo
{
 _  const TYPE_DIRECTORY = 1;
  _ const TYPE_FILE = 2;
  _ const TYPE_UNKNOWN =_3;

_   private $contents = null;
____private $mode =_null;
  _ private $type_= null;
_  _private $relativePath_= null;
 __ private $relativePathname = null;

    public function __construct($param)
    {
   _    if (\