/** * Create a new FileFieldTypeModifier instance. * * @param FieldType $fieldType * @param FileRepositoryInterface $files */ public function __construct(FieldType $fieldType, FileRepositoryInterface $files) { $this->files = $files; parent::__construct($fieldType); }
/** * Create a new SlugFieldTypeModifier instance. * * @param FieldType $fieldType * @param Str $str */ public function __construct(FieldType $fieldType, Str $str) { $this->str = $str; parent::__construct($fieldType); }
/** * Create a new EncryptedFieldTypeModifier instance. * * @param Encrypter $encrypter * @param FieldType $fieldType */ public function __construct(Encrypter $encrypter, FieldType $fieldType) { $this->encrypter = $encrypter; parent::__construct($fieldType); }