public function getMatchingCodes()
    {
        $codes = [$this->getCode()];
        foreach ($this->getChildren() as $child) {
            /** @noinspection SlowArrayOperationsInLoopInspection */
            $codes = array_merge($codes, $child->getMatchingCodes());
        }

        return $codes;
    }
public function getMatchingCodes()
    {
        $codes = [$this->getCode()];
        foreach ($this->getChildren() as $child) {
            /** @noinspection SlowArrayOperationsInLoopInspection */
            $codes = array_merge($codes, $child->getMatchingCodes());
        }

        return $codes;
    }
public function getMatchingCodes ( ) { $ codes = [ $ this -> getCode ( ) ] ; foreach ( $ this -> getChildren ( ) as $ child ) { /** @noinspection SlowArrayOperationsInLoopInspection */ $ codes = array_merge ( $ codes , $ child -> getMatchingCodes ( ) ) ; } return $ codes ; }
Return current family code and all it's sub-families codes

@return array
Return current family code and all it s sub - families codes