This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
$dirPath = __DIR__ . '/app/Entities'; | |
$directory = new RecursiveDirectoryIterator($dirPath, FilesystemIterator::SKIP_DOTS); | |
$iterator = new RecursiveIteratorIterator($directory); | |
/** @var SplFileInfo $file */ | |
foreach ($iterator as $file) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyModule | |
end | |
class MyClass | |
include MyModule | |
end | |
puts MyClass.is_a? MyModule # => false | |
puts MyClass.new.is_a? MyModule # => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function each(array, callback) { | |
var i, length = array.length; | |
for (i = 0; i < length; i += 1) { | |
callback(array[i]); | |
} | |
} | |
function map(array, callback) { | |
var newArray = []; | |
each(array, function (item) { |