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/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.

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

@@ 797-803 (lines=7) @@
794
     *                     Defaults to TableMap::TYPE_PHPNAME.
795
     * @return mixed Value of field.
796
     */
797
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
798
    {
799
        $pos = InstanceTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
800
        $field = $this->getByPosition($pos);
801
802
        return $field;
803
    }
804
805
    /**
806
     * Retrieves a field from the object by Position as specified in the xml schema.

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

@@ 1165-1171 (lines=7) @@
1162
     *                     Defaults to TableMap::TYPE_PHPNAME.
1163
     * @return mixed Value of field.
1164
     */
1165
    public function getByName($name, $type = TableMap::TYPE_PHPNAME)
1166
    {
1167
        $pos = SubscriptionTableMap::translateFieldName($name, $type, TableMap::TYPE_NUM);
1168
        $field = $this->getByPosition($pos);
1169
1170
        return $field;
1171
    }
1172
1173
    /**
1174
     * Retrieves a field from the object by Position as specified in the xml schema.