src/ReflectionObject.php
public function extract(string ...$properties): MapInterface
    {
        $map = new Map('string', 'mixed');

        foreach ($properties as $property) {
            $map = $map->put(
                $property,
                $this->extractProperty($property)
            );
        }

        return $map;
    }
public function extract(string ...$properties): MapInterface
    {
        $map = new Map('string', 'mixed');

        foreach ($properties as $property) {
            $map = $map->put(
                $property,
                $this->extractProperty($property)
            );
        }

        return $map;
    }
public function extract ( string ... $ properties ) : MapInterface { $ map = new Map ( 'string' , 'mixed' ) ; foreach ( $ properties as $ property ) { $ map = $ map -> put ( $ property , $ this -> extractProperty ( $ property ) ) ; } return $ map ; }
Extract the given list of properties

@return MapInterface<string, mixed>
Extract the given list of properties