Skip to content

Add prepend method for string concatenation (start) #19

@viniciusvts

Description

@viniciusvts

Summary

Implement a prepend method to add content at the beginning of a string.
Should be available via SM facade as both static and fluent usage.

Tasks

  • Create PrependTransformer.php in src/Transformers/
  • Implement StringTransformerInterface as per project conventions
  • Add PHPDoc @method to src/StringMorpher.php
  • Add PHPDoc @method to src/Instances/StringMorpherInstance.php
  • Add test cases covering core and edge cases in tests/Transformers/
  • Add documentation in docs/docs/methods/
  • Example usage:
SM::prepend('bar', 'foo'); // 'foobar'
SM::make('bar')->prepend('foo'); // 'foobar'

Acceptance Criteria

  • Method present, available in facade statically and fluently
  • Doc and tests included
  • PHPDoc in both facades
  • Milestone v1.0.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions