yaquawa/look-alike

A tiny lib for copy properties from one to another.

v1.0.2 2020-09-02 15:28 UTC

This package is auto-updated.

Last update: 2024-10-29 05:29:17 UTC


README

A tiny lib for copy properties from one to another even if the property is not public.

Installation

composer require yaquawa/look-alike

Usage

use Yaquawa\LookAlike\LookAlike;

$lookAlike = new LookAlike($targetObjectOrClass);
$lookAlike->syncProperties($objectOrClass, ['property_1', 'property_2']);