PHP code example of codememory / object-comparison

1. Go to this page and download the library: Download codememory/object-comparison library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

codememory / object-comparison example snippets




use Codememory\Components\ObjectComparison\ObjectComparison;

e ?string $name = null;

}

class Test2
{

    /**
     * @return string
     */
    private function getName(): string
    {
    
        return 'Codememory';
    
    }

}

$objectComparison = new ObjectComparison(new Test1(), new Test2());

var_dump($objectComparison->getComparisonResult());