src/Core/Model.php
protected function initArrayFields(array $except = [])
    {
        $reflection = new ReflectionClass(static::class);
        $docs = ($reflection->getDocComment());
        $docs = preg_replace("~[*/]+~", ' ', $docs);
        preg_match_all("~@property\s+(array|mixed|ListObject|FillableFieldsList)\s+\\$(.*)\r?\n+~", $docs, $result);

        if ($result) {
            $fields = array_diff($result[2], $except);

            foreach ($fields as $field) {
                $this->properties[$field] = new ListObject();
            }
        }
    }
protected function initArrayFields(array $except = [])
    {
        $reflection = new ReflectionClass(static::class);
        $docs = ($reflection->getDocComment());
        $docs = preg_replace("~[*/]+~", ' ', $docs);
        preg_match_all("~@property\s+(array|mixed|ListObject|FillableFieldsList)\s+\\$(.*)\r?\n+~", $docs, $result);

        if ($result) {
            $fields = array_diff($result[2], $except);

            foreach ($fields as $field) {
                $this->properties[$field] = new ListObject();
            }
        }
    }
protected function initArrayFields ( array $ except = [ ] ) { $ reflection = new ReflectionClass ( static :: class ) ; $ docs = ( $ reflection -> getDocComment ( ) ) ; $ docs = preg_replace ( "~[*/]+~" , ' ' , $ docs ) ; preg_match_all ( "~@property\s+(array|mixed|ListObject|FillableFieldsList)\s+\\$(.*)\r?\n+~" , $ docs , $ result ) ; if ( $ result ) { $ fields = array_diff ( $ result [ 2 ] , $ except ) ; foreach ( $ fields as $ field ) { $ this -> properties [ $ field ] = new ListObject ( ) ; } } }
Initializes the object's arrays and lists
@param array $except
@throws \ReflectionException
Initializes the object s arrays and lists