Code Duplication    Length = 7-7 lines in 5 locations

src/cli/Database/Base/Channel.php 1 location

@@ 791-797 (lines=7) @@
788
     *                     Defaults to TableMap::TYPE_PHPNAME.
789
     * @return mixed Value of field.
790
     */
791
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
792
    {
793
        $pos = ChannelTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
794
        $field = $this->getByPosition($pos);
795
796
        return $field;
797
    }
798
799
    /**
800
     * Retrieves a field from the object by Position as specified in the xml schema.

src/cli/Database/Base/Connection.php 1 location

@@ 927-933 (lines=7) @@
924
     *                     Defaults to TableMap::TYPE_PHPNAME.
925
     * @return mixed Value of field.
926
     */
927
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
928
    {
929
        $pos = ConnectionTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
930
        $field = $this->getByPosition($pos);
931
932
        return $field;
933
    }
934
935
    /**
936
     * Retrieves a field from the object by Position as specified in the xml schema.

src/cli/Database/Base/Instance.php 1 location

@@ 763-769 (lines=7) @@
760
     *                     Defaults to TableMap::TYPE_PHPNAME.
761
     * @return mixed Value of field.
762
     */
763
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
764
    {
765
        $pos = InstanceTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
766
        $field = $this->getByPosition($pos);
767
768
        return $field;
769
    }
770
771
    /**
772
     * Retrieves a field from the object by Position as specified in the xml schema.

src/cli/Database/Base/Subscription.php 1 location

@@ 1097-1103 (lines=7) @@
1094
     *                     Defaults to TableMap::TYPE_PHPNAME.
1095
     * @return mixed Value of field.
1096
     */
1097
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
1098
    {
1099
        $pos = SubscriptionTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
1100
        $field = $this->getByPosition($pos);
1101
1102
        return $field;
1103
    }
1104
1105
    /**
1106
     * Retrieves a field from the object by Position as specified in the xml schema.

src/cli/Database/Base/User.php 1 location

@@ 827-833 (lines=7) @@
824
     *                     Defaults to TableMap::TYPE_PHPNAME.
825
     * @return mixed Value of field.
826
     */
827
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
828
    {
829
        $pos = UserTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
830
        $field = $this->getByPosition($pos);
831
832
        return $field;
833
    }
834
835
    /**
836
     * Retrieves a field from the object by Position as specified in the xml schema.