gdbots/common-php

View on GitHub
src/Common/FromArray.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Gdbots\Common;

interface FromArray
{
    /**
     * Returns a new object from the provided array.  The array
     * should be data returned from toArray or at least match
     * that signature.
     *
     * @param array $data
     *
     * @return static
     */
    public static function fromArray(array $data = []);
}